logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Nichols" <j...@weblicon.net>
Subject Custom property configuration for Logger wrapper (Again)
Date Wed, 06 Nov 2002 16:47:38 GMT
Thought I'd give this one more try.. sorry about the bump, but I've been
looking around and still can't find any solutions.  Thanks for any help you
can give.

Jeff

----- Original Message -----
From: "Jeff Nichols" <jeff@weblicon.net>
To: "log4j-user" <log4j-user@jakarta.apache.org>
Sent: Friday, November 01, 2002 5:58 PM
Subject: Custom property configuration for Logger wrapper


> Hi,
>
> I'm making a wrapper for the Logger class that will have some additional
> methods defined.  I would like the configuration for these methods to be
> editable through the log4j.properties file.
>
> The wrapper would be something like this:
>
> public class MyLogger {
>     private Logger logger;
>
>     [standard log4j type methods using logger]
>
>     public void message(String sessionId, byte[] message) {
>         ...
>     }
>
> }
>
> And the properties file would be something like this:
>
> [standard log4j.properties entries]
>
> my.package.MyLogger.messages=true
>
> Is this possible or should I try a different strategy??
> Thanks for your time,
>
> Jeff
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002
>
>
> --
> To unsubscribe, e-mail:
<mailto:log4j-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:log4j-user-help@jakarta.apache.org>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.408 / Virus Database: 230 - Release Date: 10/25/2002


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message