[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: Jessie, enums, and loggers
From: |
Casey Marshall |
Subject: |
Re: RFC: Jessie, enums, and loggers |
Date: |
Sun, 05 Jun 2005 11:32:51 -0700 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Macintosh/20050317) |
Sascha Brawer wrote:
> Sounds great. But you don't need to define a custom Level for this
> purpose, it's already in the framework.
>
> Just use java.util.logging.Logger.getLogger("java.awt") to
> create/retrieve a Logger for java.awt. The framework maintains a tree
> of Loggers, and passes up LogRecords to the parent logger by default.
> That is, a logger of "java.awt.image.jpeg" will by default forward
> LogRecords to the logger for "java.awt.image", which will in turn
> forward it to its parent, and so on.
>
Yeah, that's another way to do it. I'd only be concerned about how
over-flexible that approach is for this usage, and whether or not it
would be a burden to use -- would you have to add half a dozen -D
options, or go edit a properties file? I kind of like being able to
specify a simple comma-delineated list of components to log into one
property.
Also, what would the performance impact be if we used trees of loggers,
and not a simple filter with a bit set?
Cheers,
signature.asc
Description: OpenPGP digital signature
- RFC: Jessie, enums, and loggers, Casey Marshall, 2005/06/04
- Re: RFC: Jessie, enums, and loggers, Andrew John Hughes, 2005/06/04
- Re: RFC: Jessie, enums, and loggers, Sascha Brawer, 2005/06/05
- Re: RFC: Jessie, enums, and loggers,
Casey Marshall <=