You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Miro Jablonsky (JIRA)" <ji...@apache.org> on 2019/05/23 17:38:00 UTC
[jira] [Commented] (LOG4NET-630) Log4Net missing Timestamp etc. in
internal LogLog
[ https://issues.apache.org/jira/browse/LOG4NET-630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16846907#comment-16846907 ]
Miro Jablonsky commented on LOG4NET-630:
----------------------------------------
This issue is fixed with the [pull request|https://github.com/apache/logging-log4net/pull/49].
Now you can configure in the Web.Config / App.Config what you want to see in the internal log4net Log.
For example:
<appSettings>
<add key="log4net.Internal.Debug" value="true"/>
*<add key="{color:#d04437}log4net.Internal.LogMsgPrefixPattern{color}" value="{color:#d04437}%date [%7processid][%3thread][%appdomain]{color}"/>*
</appSettings>
to get log4net internal trace messages like this:
{color:#f79232}2019-05-22 13:51:30,266 [ 5984][ 3][/LM/W3SVC/1/ROOT/sw-f-ch-dn-1-132029994898417032] log4net: defaultRepositoryType [log4net.Repository.Hierarchy.Hierarchy]
...
2019-05-22 13:51:30,322 [ 5984][ 3][/LM/W3SVC/1/ROOT/sw-f-ch-dn-1-132029994898417032] log4net: Adding appender named [LogFile] to logger [root]{color}
> Log4Net missing Timestamp etc. in internal LogLog
> -------------------------------------------------
>
> Key: LOG4NET-630
> URL: https://issues.apache.org/jira/browse/LOG4NET-630
> Project: Log4net
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0.8
> Reporter: Miro Jablonsky
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> I am facing the same problem as described in following StackOverflow topic: [Log4Net internal debug Timestamp|https://stackoverflow.com/questions/40077917/log4net-internal-debug-timestamp]
> Citation:
> I am having intermittent problems with Log4net not logging and in other threads there is a suggestion to setup internal logging by
> <add key="{color:#d04437}log4net.Internal.Debug{color}" value="{color:#d04437}true{color}"/>
> I have added this and it does work, which is great, but there is no timestamp. Is there a way I can have Timestamp on the internal logging. Any help is appreciated.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)