synapse-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upul Godage" <upulg....@gmail.com>
Subject Re: log to a different file per proxy
Date Mon, 03 Mar 2008 09:34:06 GMT
Hi,

Add the entries like the following to log4j.properties file in
lib/log4j.properties for each proxy.

ProxyName = Proxy name
The related appender, SERVICE_APPENDER_PROXY_NAME, describes the where to
log and how to log. You do not have to enter all these lines for each proxy.
Important thing is that "the proxy logs to SERVICE_LOGGER.ProxyName." So you
can customize each .ProxyName logs.

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

You can use the new mailing list address user@synapse.apache.org now.

Upul

On Mon, Mar 3, 2008 at 2:15 PM, Sihem <stfleche@yahoo.fr> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message