[brailleblaster] Re: Log levels, mapping mismatch

  • From: Keith Creasy <kcreasy@xxxxxxx>
  • To: "brailleblaster@xxxxxxxxxxxxx" <brailleblaster@xxxxxxxxxxxxx>
  • Date: Tue, 15 Jul 2014 17:04:30 +0000

I like the levels in LibLouisUTDML better. Can we just change the 
BrailleBlaster levels?

K


-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx 
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Michael Whapples
Sent: Tuesday, July 15, 2014 1:02 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Log levels, mapping mismatch

Hello,
The liblouis/liblouisutdml logging API and the BrailleBlaster logger have 
different levels and so do not quite match up properly.

Here are the levels for liblouis/liblouisutdml: FATAL, ERROR, WARN, INFO and 
DEBUG. Here are the levels in BrailleBlaster: SEVERE, WARNING, INFO, 
CONFIGURATION, FINE, FINER and FINEST.

We only need to go from the liblouis/liblouisutdml levels to the BrailleBlaster 
ones, we do not need to go the other way.

In mapping these I felt may be i should make INFO and WARNING levels on both 
match each other. The issue then is that liblouis/liblouisutdml has an 
additional higher priority level.

I resolved this mismatch by mapping both FATAL and ERROR to SEVERE.

How do others feel? Should I have mapped ERROR to WARNING? Another option would 
to have not mapped INFO to INFO and WARN to WARNING and just mapped each at 
increasing levels (eg. FATAL-SEVERE, ERROR-WARNING, WARN-INFO, 
INFO-CONFIGURATION, DEBUG-FINE).

Michael Whapples


Other related posts: