alex mazour wrote:

Paul Smith <psmith <at> aconex.com> writes:


Unfortunately at this stage there is no support for custom levels inside Chainsaw v2.

Inside Chainsaw there is 2 classes that relate to displaying levels:

* TableColorizingRenderer - this holds a Map of Levels->Icon, which is generated from..
* LevelIconFactory - this is where the Map is built up. At the moment TRACE shares the DEBUG icon.


What happens if you make Chainsaw display the Level as text instead of Icons ? Does it come out correctly?

Paul




In either mode (icon or text), it displays debug level, instead of custom level.
Do you know how much work is to add support for custom log level.

thanks,
Alex



Looking at this further, it is likely to be the deserialization of the LoggingEvent object (see the LoggingEvent.readObject() method in log4j 1.3). The Level class has no current way of registering custom levels to be able to decode an int level to it's object equivalent. You would have to modify the Level.toLevel(int) methods to get the Level class you are after (and also have your custom Level available in the Chainsaw classpath).

Paul

Reply via email to