Menu

Is it possible to close log4net?

Help
Peter Shi
2010-02-02
2013-04-17
  • Peter Shi

    Peter Shi - 2010-02-02

    I'm logging information of my project in a text file. But the log4net in memcached client library produce a lot of DEBUG and INFO messages, which occupies 90% of my log file size. Is it possible to close log4net in memcached client library? Or anything else I can do to make it easy to find my own messages in the log file?

     
  • Martin Odhelius

    Martin Odhelius - 2010-02-10

    Do not use a root-logger, this logger will log everything. Make a more specific one based on namespaces. The following logger will for example only log events from the specific class MyClass located in MyNamespace  <logger name="MyNamespace.MyClass">. You can also set a level in your logger and just log thing above INFO. You will find more information how to configure log4net here http://logging.apache.org/log4net/release/manual/configuration.html

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.