Have you tried variable substitution within a layout pattern in the
configuration file?  I tried a quick test similar to

      ...ConversionPattern=[%t] %-5p %c - ${user.name} - %m%n

and the value of the System Property user.name was substituted in my log
file.




                                                                                       
                                           
                      Dan Walker                                                       
                                           
                      <walkerdan2@attbi        To:       [EMAIL PROTECTED] 
                                           
                      .com>                    cc:                                     
                                           
                                               Subject:  Conversion character for 
system properties?                              
                      08/28/2002 09:55                                                 
                                           
                      AM                                                               
                                           
                      Please respond to                                                
                                           
                      "Log4J Users                                                     
                                           
                      List"                                                            
                                           
                                                                                       
                                           
                                                                                       
                                           




Hi,
I would like to make the system property "user.name" show up in each log
entry.  Is there a conversion character for this purpose or some other
(easy)
way of getting what I want?

Thanks,
Dan

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]
>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]
>






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to