Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm trying to get custom logging working. For example:
LoggerResolver.Current.Logger.Debug(this.GetType(), "Hello World");
But I can't seem to work out where this is logged to; it's not in any of the App_Data/Logs and I can't find it anywhere in the database .
I think by default Debug messages are filtered out and only Info, Warnings and Error messages are logged
To change this, edit the /config/log4net.config file and then in this section...
<root> <priority value="Info"/> <appender-ref ref="AsynchronousLog4NetAppender" /> </root>
change 'priority value' to DEBUG
Hope this helps
Ben
Thanks Ben! That fixed my problem.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Locating custom logging
I'm trying to get custom logging working. For example:
But I can't seem to work out where this is logged to; it's not in any of the App_Data/Logs and I can't find it anywhere in the database .
I think by default Debug messages are filtered out and only Info, Warnings and Error messages are logged
To change this, edit the /config/log4net.config file and then in this section...
change 'priority value' to DEBUG
Hope this helps
Ben
Thanks Ben! That fixed my problem.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.