[8.5.2] log4s globalLevel ignored from INI file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[8.5.2] log4s globalLevel ignored from INI file

Richard Sargent
Administrator
It looks here is a disconnect in the log4s settings initialization. globalLevel=Off is ignored. In fact, it looks like the implementation is looking entirely elsewhere for it and not finding it. Consequently, it always defaults to ALL.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [8.5.2] log4s globalLevel ignored from INI file

dmacq
Hi Richard,

I cannot reproduce this.

If I set globalLevel=Off and run a transcriptAppender, I get no output which is the correct behavior. 

What does your ini file look like?

Donald


On Wednesday, March 12, 2014 9:32:27 PM UTC-4, Richard Sargent wrote:
It looks here is a disconnect in the log4s settings initialization. globalLevel=Off is ignored. In fact, it looks like the implementation is looking entirely elsewhere for it and not finding it. Consequently, it always defaults to ALL.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [8.5.2] log4s globalLevel ignored from INI file

Richard Sargent
Administrator
On Wednesday, March 19, 2014 7:55:07 AM UTC-7, Donald MacQueen wrote:
I cannot reproduce this.
What does your ini file look like?

[log4s]
debugEnabled=true
quietMode=false
globalLevel=Off
fileAppender=FileAppender, root, .\log4s.log, false, Debug, EsPatternLayout, '%d{ISO8601}    [%t]    [%l]    [%o]    %m', false,
asyncFileAppender=AsyncFileAppender, root, .\log4s.log, false, Debug, EsPatternLayout, '%d{ISO8601}    [%t]    [%l]    [%o]    %m', false, FileAppender

(and I have a separate question about how to make the async appenders work)
 

If I look for senders of #level:, which would be used to control what level the singleton compares against, there are four (but only three refer to the log manager class).
EsLevel class>>#level:levelStr:syslogEquivalent:
EsLoggingFrameworkApp class>>#setCurrentSettings
EsLogManager class>>#initializeSingleton
EsLogManager class>>#level:

#initializeSingleton sets level to: EsLevel All
#setCurrentSettings only sets the level if there is no valid globalLevel setting in the INI file.


Of the methods containing the string "globalLevel", the majority of them are in EsLogger which uses a local method named #globalLevel that references the singleton's level.

The remaining three methods are:
EsLoggingFrameworkApp class>>#currentSettings
EsLoggingFrameworkApp class>>#setCurrentSettings
and
EsLoggingFrameworkApp class>>#validSettings

Of these, only #setCurrentSettings affects the singleton's level, as previously mentioned.


The above information was extracted from an 8.5.2 "New Image" with no additional code loaded.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.