Anthony Chee wrote:
> Hi,
>
> Besides INFO, DEBUG, ...... built-in level, can I build custom level
> OTHER for my program?
>
> Regards,
>
> Anthony
>
This *isnt* to say youre *wrong*, but Id point you to some guidance in
the docs.
from perldoc Log::Log4perl, section Log Levels
But nobody does that, really. Neither does anyone need more logging
levels than these predefined
ones. If you think you do, I would suggest you look into steering your
logging behaviour via the
category mechanism.
If you need to find out if the currently configured logging level would
allow a logger’s logging
statement to go through, use the logger’s "is_level()" methods:
'OTHER' seems both reasonable, and a cop-out, both at the same time.
Youve got *the-man* answering questions, I'll wager that if you
speak to your particular circumstance, and why you chose the OTHER way
(pun intended),
he can respond to the tradeoffs in your case.
|