It would help if you could post your log4j config file for us to look at.

Ken

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 19, 2004 2:17 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: Help with loggers - syslogd
> 
> 
> Just tried that.  It does not really work.  I tried by having 
> two instance
> variables. One that gets the "applicationA" logger and one 
> that gets the
> "applicationB" logger.  "applicationA" logger is configured 
> to use syslog
> appender.  "applicationB" appender appends to the default 
> appender that
> appends to a file.  The issue is that both "applicationA" and 
> "applicationB"
> loggers logs are going to the syslogd log file.  I just want 
> "applicationA"
> logs to go to the syslogd log file. 
> 
> Any clue on how to do this?
> 
> 
> Thank You
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 17, 2004 5:30 PM
> To: Log4J Users List
> Subject: Re: Help with loggers - syslogd
> 
> 
> 
> Hi,
> You could use this
> 
> log4j.rootLogger=debug, A
> log4j.logger.applicationA=debug, applicationA
> log4j.logger.applicationB=debug, applicationB
> 
> #### Standard Output
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> log4j.appender.stdout.layout.ConversionPattern==%d [%p] %c %x %m%n
> 
> #### R (Root)
> log4j.appender.A=org.apache.log4j.RollingFileAppender
> log4j.appender.A.File=root_Log4J.log
> log4j.appender.A.MaxFileSize=100KB
> log4j.appender.A.MaxBackupIndex=1
> log4j.appender.A.layout=org.apache.log4j.PatternLayout
> log4j.appender.A.layout.ConversionPattern=%d [%p] %c %x %m%n
> 
> #### FundServ
> log4j.appender.applicationA=org.apache.log4j.RollingFileAppender
> log4j.appender.applicationA.File=FundServ_Log4J.log
> log4j.appender.applicationA.MaxFileSize=100KB
> log4j.appender.applicationA.MaxBackupIndex=1
> log4j.appender.applicationA.layout=org.apache.log4j.PatternLayout
> log4j.appender.applicationA.layout.ConversionPattern=%d %-5p %l : %m%n
> 
> Now you can use
> 
> Logger logger1 = Logger.getLogger("applicationA");
> 
> 
> 
> 
>  
> 
>                       [EMAIL PROTECTED]
> 
>                       s.ge.com                 To:
> [EMAIL PROTECTED]
> 
>                                                cc:
> 
                      02/17/2004 02:08         Subject: Help 
> with loggers -
> syslogd                                                    
>                       PM
> 
>                       Please respond
> 
>                       to "Log4J Users
> 
>                       List"
> 
>  
> 
>  
> 
> 
> 
> 
> I am trying to define a logger that I can use with the syslog 
> appender.
> What I want to be able to do is to have a logger that I 
> obtain by name lets
> say:
>              Logger.getLogger("syslogdLogger");
> How I can define this logger in the configuration file so that when
> somebody
> has this logger it logs to the syslogd of a machine?
> 
> Thank you
> 
> Carlos Javier Rivera Vazquez
> __________________________________________________
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> -----------------------------------------
> The contents of this email are the property of PNC. If it was 
> not addressed
> to you, you have no legal right to read it. If you think you 
> received it in
> error, please notify the sender. Do not forward or copy 
> without permission
> of the sender.
> 
> 
> ---------------------------------------------------------------------
> 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