English 中文(简体)
记录 视窗7网上地址
原标题:Log4Net localhost addressing issue in Windows7

我最近把我的解决办法从一台XP机器转移到一台Windows7机器。

I m在我的解决方案中使用Log4Net和Log2Console与民主党阅读

当我使用以下汇票时,没有取得任何结果:

    <appender name="UdpAppender" type="log4net.Appender.UdpAppender">
        <remoteAddress value="localhost" />
        <remotePort value="7071" />
        <layout type="log4net.Layout.XmlLayoutSchemaLog4j" />
    </appender>

然而,如果INSL在发现我目前的IP地址时发现,它确实这样做了。

<appender name="UdpAppender" type="log4net.Appender.UdpAppender">
    <remoteAddress value="192.168.1.64" />
    <remotePort value="7071" />
    <layout type="log4net.Layout.XmlLayoutSchemaLog4j" />
</appender>

127.0.0.1 does not work either.

难道有人能够解释发生了什么,我如何能够纠正这种情况? 我显然不想在一个源头控制项目中使用一个有活力的配给IP!

预 收

最佳回答
问题回答

暂无回答




相关问题
Log4Net and extra fields

Is it possible to insert extra fields into the database and use them in log4net? I have a UserId I would like to have in an extra field in the log-table. I have added the field in the log4net.config:...

log4net with .NET 4.0

I ve thrown together some code to tinker with the new .Net 4.0/VS 2010 pieces, but I can t seem to find a build of my logging framework of choice (log4net) for 4.0, and I m getting reference errors ...

Best logging approach for composite app?

I am creating a Composite WPF (Prism) app with several different projects (Shell, modules, and so on). I am getting ready to implement logging, using Log4Net. It seems there are two ways to set up the ...

log4net log files disappear when service restarted

We are using log4net to create our logfiles from Windows services, and we are using the RollingFileAppender rolling based on date. The version of log4net we are using is 1.2.9. Now for the issue. ...

How do I use a date pattern in a header/footer?

Here s my appender configuration from my app.config. This just prints out the literal string instead of translating it to the date (i.e., it literally prints "[START: %date{MM/dd/yy HH:mm} ]"). <...

热门标签