Re: [logback-user] Localized log level names

5 Jun
2012
5 Jun
'12
12:42 p.m.
Hi Ceki,
Thanks for sharing this code. It's probably a minor detail but instead of switching on a String which requires JDK 7, you could switch on the integer corresponding to a Level. The Level.toInt() method [1] returns this integer. The integer constant for DEBUG is given by Level.DEBUG_INT [2], for INFO by Level.INFO_INT and so forth.
Ok, thank for your suggestion.
BTW, the code for the Levels enum is missing. For future reference, it would be very nice if you could create a github project for this code.
I just created a github project for my custom level converter, here is the link https://github.com/dario-campagna/CAL10N-level-converter Cheers, Dario
4868
Age (days ago)
4868
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dario Campagna