AW: - Log4j File appenders-generate files specified by appenders only in first usage

2009-06-24 Thread Bender Heri
You cannot do this by configuration.
What is the problem of having empty log files?
Heri

-Ursprüngliche Nachricht-
Von: inosh [mailto:inosh...@gmail.com] 
Gesendet: Mittwoch, 24. Juni 2009 10:59
An: log4j-user@logging.apache.org
Betreff: [SPAM (Keyword Checking)] - Log4j File appenders-generate files 
specified by appenders only in first usage - Found word(s) list error in the 
Text body


Hi All,

I'm little bit new to log4j. I have used log4j xml to configure file appenders 
and loggers. But i want to take some control over those appender file creation. 
All the files specified in fileAppenders are generating when loading log4j.xml. 
What i want is to generate those files only when the first usage of the loggers 
which have these files get append. For example if error.txt file is specied in 
some FileAppender, the file is creating when log4j.xml is loaded. But what want 
is to create those files only when the first usage of the logger which as this 
file as an Appender. This can be done by creating appenders in manually in 
code. But I was highly required to use log4j.xml. Please help me with this.

Thanks.
--
View this message in context: 
http://www.nabble.com/Log4j-File-appenders-generate-files-specified-by-appenders-only-in-first-usage-tp24181035p24181035.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: AW: - Log4j File appenders-generate files specified by appenders only in first usage

2009-06-24 Thread inosh

Yea. Thanks for replying.


Bender Heri wrote:
 
 You cannot do this by configuration.
 What is the problem of having empty log files?
 Heri
 
 -Ursprüngliche Nachricht-
 Von: inosh [mailto:inosh...@gmail.com] 
 Gesendet: Mittwoch, 24. Juni 2009 10:59
 An: log4j-user@logging.apache.org
 Betreff: [SPAM (Keyword Checking)] - Log4j File appenders-generate files
 specified by appenders only in first usage - Found word(s) list error in
 the Text body
 
 
 Hi All,
 
 I'm little bit new to log4j. I have used log4j xml to configure file
 appenders and loggers. But i want to take some control over those appender
 file creation. All the files specified in fileAppenders are generating
 when loading log4j.xml. What i want is to generate those files only when
 the first usage of the loggers which have these files get append. For
 example if error.txt file is specied in some FileAppender, the file is
 creating when log4j.xml is loaded. But what want is to create those files
 only when the first usage of the logger which as this file as an Appender.
 This can be done by creating appenders in manually in code. But I was
 highly required to use log4j.xml. Please help me with this.
 
 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Log4j-File-appenders-generate-files-specified-by-appenders-only-in-first-usage-tp24181035p24181035.html
 Sent from the Log4j - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
 For additional commands, e-mail: log4j-user-h...@logging.apache.org
 
 
 
 -
 To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
 For additional commands, e-mail: log4j-user-h...@logging.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/AW%3A---Log4j-File-appenders-generate-files-specified-by-appenders-only-in-first-usage-tp24183202p24196496.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org