I think you want to create a new logger repository per/user. Look into Repository Selectors and search the list for something like "per/user repository selector" or some derivation thereof.

Jake

On 4/14/2010 2:46 AM, KasHarish wrote:

Thanks for reply Jack !

Actually, I wnat to change log4j configuration based on user login !
Suppose I have two users "A" and "B" and in database I set maxFileSize, and
maxBackUpIndex and log file path values with user login information.....

Now as user "A" login to the application then it use database parameter
values set for user "A" and
as user "B" login in to application then it use maxFileSize, and
maxBackUpIndex and log file path values set for user "B" in database.

I go through the Maarten Bosteels mail "Re: log4j 1.2.1
DOMConfigurator.subst" but I didn't get the idea to solve my problem....

It will be great for me if you give me some detail idea on this how I can do
this?? ...

thanks again for reply !!




Jacob Kjome wrote:

See the timely email from Maarten Bosteels with the subject "Re:  log4j
1.2.15
DOMConfigurator.subst".  He provides the solution you need.

Jake

On Tue, 13 Apr 2010 04:51:58 -0700 (PDT)
   KasHarish<[email protected]>  wrote:

Hi,
I am new to log4j and xml, I am using log4j xml for log4j configuration
now
I want to pull param values like
maxFileSize, maxBackupIndex, File etc... from database!!
Is it possible for me or not please help me out !!

        <appender name="debugfile" class="org.apache.log4j.RollingFileAppender">
                --- here I want size value from database
                 --- here I want index value from database
                  --- here I want path value from database

Please help !!
Thanks in advance !!
--
View this message in context:
http://old.nabble.com/log4j-xml-param-values-want-to-pull-form-database-dynamically-tp28228996p28228996.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to