1. It is not recommended to subclass Logger. It would be better to write a Wrapper if you have particular business rules to implement. 2. In order to analyze your problem you should provide more details: - original property file - alternative property file - name(s) of involved loggers - Where do you call te code below?
Heri > -----Original Message----- > From: Paulicke Stephan (KISP 53) > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 20, 2006 3:10 PM > To: log4j-user@logging.apache.org > Subject: [SPAM (Bayesain Analysis)] - problem with alternative > log4j.properties-file - Bayesian Filter detected spam > > > hi, > i wote a small application (contained in a .jar-file) which also > includes a log4j.properties file. > i also wrote my own logger which depends on org.apache.log4j.Logger > everthing works fine so far. i included a parameter to define an > alternative log4j.properties file > that should be used: > logProps.load(new > FileInputStream(logPropFile)); > > PropertyConfigurator.configure(logProps); > if i use this, the logfile will be empty. this was working before i > created my own logger. > any ideas? > > thanx in advance > > stephan > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]