OK! Thanks! It works!
In fact, I did not find that in the documentation of synapse. 
Sihem

"Asankha C. Perera" <[EMAIL PROTECTED]> a écrit : Sihem

Nope, you are able to create per-proxy log files with Synapse 1.1.1

You need to define it however into your log4j.properties - Please see 
http://issues.apache.org/jira/browse/SYNAPSE-123 for more information
/
/asankha/

" Currently all services log to the SERVICE_APPENDER (see below)

# Configure the service logger at INFO level. Writes only 
run-time/mediation-time audit messages
log4j.category.SERVICE_LOGGER=INFO, SERVICE_APPENDER
log4j.additivity.SERVICE_LOGGER=false
log4j.appender.SERVICE_APPENDER=org.apache.log4j.RollingFileAppender
log4j.appender.SERVICE_APPENDER.File=logs/service.log
log4j.appender.SERVICE_APPENDER.MaxFileSize=1000KB
log4j.appender.SERVICE_APPENDER.MaxBackupIndex=10
log4j.appender.SERVICE_APPENDER.layout=org.apache.log4j.PatternLayout
log4j.appender.SERVICE_APPENDER.layout.ConversionPattern=%d{ISO8601} 
[%X{ip}-%X{host}] [%t] %5p %c{1} %m%n

However, if you want to have a logs/proxy1.log for your proxy service 
named "proxy1", create a new appender (say PROXY1_APPENDER with the 
location of the log file etc) and assign it to the category as below

log4j.category.SERVICE_LOGGER.proxy1=INFO, PROXY1_APPENDER / "

Sihem wrote:
> Hello,
> I configured several proxies on synapse and I would like to create a log file 
> for each of these proxies and not log everything in the same file. I found a 
> mail in the newsgroup about this:
> Configuration for producing unique log per proxied service?
>
> But the same problem still remains because in the version 1.1.1, there is not 
> a solution for this ?
> Am I right ?
> Thanks!
> sihem
>
>        
> ---------------------------------
>  Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
>   


       
---------------------------------
 Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

Reply via email to