Trent,

The FATAL is just part of the anachronistic set of labels which are attached
to Priorities (levels). At Cognos we have abandoned the old UNIX labels as
completely unhelpful and simply work with an ordered set of values which can
be used either to denote the severity level or the detail level of a
message.

Thinking in terms of 1,2,3,4,5 is much more helpful in our experience.

Burton

-----Original Message-----
From: Trent Mick [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 4:52 PM
To: [EMAIL PROTECTED]
Subject: survey: Is the FATAL priority level useful?



Hello,

I am currently specing out a core logging module for the Python language
which borrows from log4j. I would like to know if, in practice, people have
found the FATAL priority level of use in a language with exception handling
support.

The way I see it (not having the benefit of experience) the ERROR level is
useful for identifying errors in user input before terminating processing
(or
stumbling along afterward). A FATAL problem is typically just an uncaught
exception -- and if the exception is uncaught there really seems no
appropriate to actually *log* the problem.

The only appropriate senario that I see is having one exception catch
block around my entire application which will log a FATAL error for any
unexpected exception.

    public class MyApp {
        static Logger logger = Logger.getLogger(MyApp.class);

        public static void main(String[] args) {
            try {
                return dostuff();
            } catch (Throwable t) {
                logger.fatal("Something really bad happened.");
            }
        }
    }

Are there other usage scenarios for which people have found FATAL to be
handy.

Thanks,
Trent


-- 
Trent Mick
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to