Yes, I agreed that programatically setting the log properties is not a
common practise.

The customer wants to maintain (or bother) only one single application
configuration file.

In order to isolate log4j.properties from the customer, we will have
to read the log level from the current configuration file and set it
into our Log4j logger.

Well, if that is the case... it would be better if we use Log4j
directly without using SLF4J?


On 3/15/07, Setumadhav Kulkarni <[EMAIL PROTECTED]> wrote:
>
>
> No, you can not do this using slf4j... You may have to use the underlying
> logger apis (like log4j) to do so... Slf4j is just a facade for the common
> logging apis...
> I also learn that programatically setting the log properties is not a common
> practise...
> Thanks and Regards,
> Setu
> -----------------------------------
> [EMAIL PROTECTED]
> off: +91.20.30212111
> mob: +91.9960692038
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> To: [email protected] <[email protected]>
> Sent: Wed Mar 14 22:20:20 2007
> Subject: [slf4j-user] How to programmatically set log level in SLF4J?
>
> Hi!
>
> With Log4j, we can programmatically set the log level via
> Logger.setLevel(Level).
> How can we do the same using SLF4J?
> _______________________________________________
> user mailing list
> [email protected]
> http://www.slf4j.org/mailman/listinfo/user
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> To: [email protected] <[email protected]>
> Sent: Wed Mar 14 22:20:20 2007
> Subject: [slf4j-user] How to programmatically set log level in SLF4J?
>
> Hi!
>
> With Log4j, we can programmatically set the log level via
> Logger.setLevel(Level).
> How can we do the same using SLF4J?
> _______________________________________________
> user mailing list
> [email protected]
> http://www.slf4j.org/mailman/listinfo/user
>
>
>
> _______________________________________________
> user mailing list
> [email protected]
> http://www.slf4j.org/mailman/listinfo/user
>
_______________________________________________
user mailing list
[email protected]
http://www.slf4j.org/mailman/listinfo/user

Reply via email to