logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maven apache <apachemav...@gmail.com>
Subject Re: does log4j support wildcard
Date Tue, 30 Nov 2010 09:36:28 GMT
2010/11/30 JOSE L MARTINEZ-AVIAL <jlmagc@gmail.com>

> A system propertie will do. I use it, and works perfectly.
>
Thanks, I will have a try. :)

>
> 2010/11/30 maven apache <apachemaven0@gmail.com>
>
> > 2010/11/30 Stadelmann Josef <josef.stadelmann@axa-winterthur.ch>
> >
> > > How can you define a destination with a widlcard?
> > > Think : copy file-a.txt to {widlcard}
> > > where wildcard is not defined when copy starts executing,
> > > and then tell me where file-a.txt is after the copy completes?
> > >
> > > My question is where to define the xxxx.
> >
> >
> > > Maybe you think of xxxx as shown below!
> > > # R is a rolling file appender  --- not used yet / no need to parse
> > > log4j.appender.R=org.apache.log4j.RollingFileAppender
> > > log4j.appender.R.Append=true
> > > log4j.appender.R.File=${xxxx}logs/tomcat.log
> > > log4j.appender.R.MaxFileSize=2MB
> > > log4j.appender.R.MaxBackupIndex=10
> > > log4j.appender.R.layout=org.apache.log4j.PatternLayout
> > > log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
> > >
> > > now xxxx is your exported environment variable or a logical
> > > and it needs to be defined unless your log will be written at
> > >
> > > Yes,so it means the xxxx can be set in the System.properties?
> >
> >
> > > ./logs/tomcat.log
> > >
> > > Josef
> > >
> > >
> > >
> > > -----Urspr√ľngliche Nachricht-----
> > > Von: maven apache [mailto:apachemaven0@gmail.com]
> > > Gesendet: Dienstag, 30. November 2010 00:31
> > > An: Log4J Users List
> > > Betreff: Re: does log4j support wildcard
> > >
> > >   1. log4j.appender.FILE=org.apache.log4j.FileAppender
> > >   2. log4j.appender.FILE.File={xxxx}/file.log
> > >
> > > where the xxxx is the wildcard
> > >
> > > 2010/11/30 Scott Deboy <scott.deboy@gmail.com>
> > >
> > > > Can you clarify what you mean specifically by 'wildcard'?
> > > >
> > > > Scott
> > > >
> > > > On Mon, Nov 29, 2010 at 3:32 AM, maven apache <
> apachemaven0@gmail.com
> > > > >wrote:
> > > >
> > > > > Hi:
> > > > > Does log4j support wildcard?
> > > > >
> > > > > Is there a example?
> > > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > For additional commands, e-mail: log4j-user-help@logging.apache.org
> > >
> > >
> >
>

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