DebugAppender is not one I'd consider a "core appender". It's a pretty specific implementation to the .NET Debug class. This class does indeed send messages to the Output window. I realize this is one of the divergences between log4j and log4net.
The console appenders are probably similar, but with Winform applications in .NET, not terribly useful. As far as I know, you'd have to hook into the console using AttachConsole and get the logger output that way. (Yuck!) I'm assuming seeing console output from a Java application is markedly easier, especially if running under the JDB. -Ross 2010/5/12 Radovan Raszka <ras...@hasam.cz> > I think DebugAppender in log4net is something different you think ;-))) > There is ConsoleAppender in log4net which works correctly according to > configuration and probably corresponds to Java's ConsoleAppender. > I have never used DebugAppender, but it probably send its output to the > Output window in Visual Studio > > Radovan > > -----Původní zpráva----- > Od: Steven Whatmore [mailto:steven.whatm...@purefacts.com] > Odesláno: 12. května 2010 13:41 > Komu: Log4NET User > Předmět: RE: Controlling the log message format > > Ross, > > We have a very similar set of Appenders to the log4net (as expected since > it is a port as far as I know) > > JAVA .NET > > ConsoleAppender DebugAppender > JDBCAppender ADONetAppender > DailyRollingFileAppender RollingFileAppender > > In fact I believe that most of the core Appenders included with log4j have > a corresponding counterpart in log4net > > The configuration is slightly different depending on what version since the > version that we are currently using in log4j is using the older property > file format as opposed to an XML configuration file (but I believe the newer > version of log4j has the XML configuration file option), and the actual > specification for the formats are specified in a different manner > > As an example, here is the configuration option for the ConsoleAppender > > Java > > log4j.appender.DebugAppender=org.apache.log4j.ConsoleAppender > log4j.appender.DebugAppender.layout=org.apache.log4j.PatternLayout > log4j.appender.DebugAppender.layout.ConversionPattern=%d{ISO8601} %-5p > [%t] %c %M - %m\n > > .NET > > <appender name="DebugAppender" type="log4net.Appender.DebugAppender"> > <layout type="log4net.Layout.PatternLayout"> > <conversionPattern value="%date %-5level [%thread] - > %message%newline" /> > </layout> > </appender> > > and the root logger > > Java > > log4j.rootLogger=DEBUG, DebugAppender, DailyRollingFileAppender > > .NET > > <root> > <level value="DEBUG" /> > <appender-ref ref="DebugAppender" /> > <appender-ref ref="RollingFileAppender" /> > </root> > > The similarities should be fairly obvious. > > Whatty > >