From: Mike S. <m...@pe...> - 2004-09-15 18:11:04
|
Aldrich, Timothy wrote on 9/15/2004, 10:11 AM: > adding a level called STATUS would be a simple way to sprinkle in > $logger->status() messages designed for this new log without refactoring > my whole logging methodology. > > _Why_ is this deprecated , am I missing a draw-back to this approach ? > I guess the main reason is that it's an additional hurdle for Log4X users to find non-standard log levels. And it's something people who are not familiar with the categories concept would jump right into for tasks that could be solved much more elegantly with categories. With your requirements, though, it makes sense. Another option would be a custom filter grepping for certain keywords (like "[status]...") in the log message and forwarding matching ones to the appropriate appender. -- -- Mike Mike Schilli m...@pe... |