Forum Navigation
Behaviour of tango.util.log.Log changed
Moderators:
kris
Posted: 11/26/09 15:31:03When I do
import tango.util.log.Log; import tango.util.log.AppendConsole; import tango.util.log.LayoutDate; import tango.io.Console; void main (char[][] args) { auto rootLog = Log.root; rootLog.add(new AppendStream(Cout.stream, true, new LayoutDate())); rootLog.level = rootLog.Info; auto log = Log.lookup("Test:"); log.info("rootLog - Level = '{}'", rootLog.level); log.info("log - Level = '{}'", log.level); }I get with tango-r5218
2009-11-26 16:15:33,266 Info [Test:] - rootLog - Level = '1' 2009-11-26 16:15:33,266 Info [Test:] - log - Level = '0'with an older tango (tested with tango-r4967) I got
2009-11-26 16:13:12,747 Info Test: - rootLog - Level = '1' 2009-11-26 16:13:12,747 Info Test: - log - Level = '1'The problem is the fact, that with older tango the log object inherited the log.level from the rootlog object. With new tango log doesn't inherit the level.
Has this been changed by purpose?