On 3/17/10 1:50 PM, Felix Knecht wrote:

What about defining a number which would inform immediately about the
kind of message we are dealing with ? We can for instance use hex
numbers, where the two higher bits will be used to indicate the log level :
DEBUG = 00XXXXXXXXX...
INFO  = 01XXXXXXXXX...
WARN  = 10XXXXXXXXX...
ERROR = 11XXXXXXXXX...
? ATM only errors should be i18n-tyified. This means only ERROR/FATAL
may happen. All the other things are not yet translated. Furthermore a
log messages indicates clearly of which level it is. Do I miss something?
No, you're right, this info is already provided by the logger. So please forget about the 2 first bits. I still think that we can use bits to discriminate errors though.

--

Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com


Reply via email to