Level must be specified explicitly for every Log call?
Brought to you by:
jvarszegi
In the following piece of code:
Logger _logger = Logger.CreateFileLogger( "Debug.log" );
_logger.Level = Level.None;
_logger.Log( "test 1" );
_logger.Log( Level.Info, "test 2" );
The documentation mentions the the default log level
should be Level.Info, so I would expect "test 1" to be
ignored by _logger, yet it still shows up in my logs.
But "test 2" is correctly ignored. Am I missing something?
Logged In: NO
inside logger he forgot to add this code inside one of the
logevent call used by the chirldren.
if(_level.Priority < this.levelPriority)
{
return;
}
So that event does not check the priority of the event and
logs them all.