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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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