log4net FileAppender -> Logging to File
-
Hy everyone! I found the log4net tool which looks very interesting and powerful to me. I also found an article describing how to send log-messages to screen (An Introduction to the log4net logging library, using C#[^]. But the tons of codelines confuse me more than it helps :sigh: I mean those of the log4net tool So what I want to do is to write these log-messages described in there to a logfile instead of writing it to screen. I guess this will be very simple for most of you but at the moment I am stuck. Could someone help me please how to change the code in this article so it writes the messages to a logfile? Thanks! Stephan.
-
Hy everyone! I found the log4net tool which looks very interesting and powerful to me. I also found an article describing how to send log-messages to screen (An Introduction to the log4net logging library, using C#[^]. But the tons of codelines confuse me more than it helps :sigh: I mean those of the log4net tool So what I want to do is to write these log-messages described in there to a logfile instead of writing it to screen. I guess this will be very simple for most of you but at the moment I am stuck. Could someone help me please how to change the code in this article so it writes the messages to a logfile? Thanks! Stephan.
logging to a file is already described in the article you link to. have a quick search for "FileAppender"..
-
logging to a file is already described in the article you link to. have a quick search for "FileAppender"..
ups sorry, yes you are right. looks like i didn't see it when quickly reading the article. thanks for the hint!