Software Tipps
07.10.2010
C#/CSharp and log4net
I tried to use log4net (external link), but the rollingFileAppender was not creating the logfile. After looking for examples in the web I found good example (external link).
The log file wasn't created at all. I changed it to
<file value="Log.txt" />
without any path information and that worked for me (you have to have a look inside the bin/debug or bin/release folder).
To log from multiple classes to that logger, you have to define in every class a new logger and log to it. Log4Net does the rest and all loggings are inside you logfile.
vorherige Seite: EchoPing
nächste Seite: siegfried Linux
