Log4perl一段e文翻译
mfkiu 2005-09-14 06:37:57 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:
$logger->is_debug() # True if debug messages would go through
$logger->is_info() # True if info messages would go through
$logger->is_warn() # True if warn messages would go through(如果警告信息可以通过时为true)
$logger->is_error() # True if error messages would go through
$logger->is_fatal() # True if fatal messages would go through
Example: $logger->is_warn() returns true if the logger's current level, as derived from either the logger's category (or, in absence of that, one of the logger's parent's level setting) is $WARN, $ERROR or $FATAL.(如果logger当前的级别为warn,error,fatal时返回true)
上述两个地方说的是不是有冲突,请兄弟们给个意见。