You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output: 2017-02-02 10:13:59,214 [9] DEBUG Sdl.Web.Common.Logging.Log4NetLogger - Binary with URL '/version.json' is still up to date, no action required
I guess this is caused by the DXA logging implementation not forwarding the the class name of the original caller.
The text was updated successfully, but these errors were encountered:
If you're using Unity 5.11.* you can use https://github.com/unitycontainer/log4net.
I had some success with this on a recent project for this exact reason and with this extension I was able to isolate separate log files based on namespace hierarchy as you would expect to in log4net.
Just make sure you're not resolving ILog anywhere as this was an initial issue for me.
If I get a chance I'll try and add it and create a PR.
When configuring the Log4Net logging to log the type ("Used to output the fully qualified type name of the caller issuing the logging request."), DXA logs all log lines like if they are logged by
Sdl.Web.Common.Logging.Log4NetLogger
.For example:
Log4Net config:
<conversionPattern value="%date [%thread] %-5level %type - %message%newline" />
Output:
2017-02-02 10:13:59,214 [9] DEBUG Sdl.Web.Common.Logging.Log4NetLogger - Binary with URL '/version.json' is still up to date, no action required
I guess this is caused by the DXA logging implementation not forwarding the the class name of the original caller.
The text was updated successfully, but these errors were encountered: