You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Vladimir Corovic <vl...@certus.co.yu> on 2005/10/24 09:22:56 UTC

Removing log4j messages from my logs

Hello,

How can I remove log4j start messages from my logs?

I checked many sites, as well as official manual, but I didn't succeed. I
tried with setting log4j.debug = false in my config file, but that doesn't
work.

Tanks in forward,
Vlado

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


Re: Removing log4j messages from my logs

Posted by James Stauffer <st...@gmail.com>.
1.2.9 should not print those extra messages when log4j.debug is false.
 I don't know when 1.3 will be released but I know that is
periodically discussed so check the archives.  The dev list archives
may have more info.

On 10/25/05, Vladimir Corovic <vl...@certus.co.yu> wrote:
> I tried both 1.3alpha-6 and 1.2.9. When it is expected for 1.3 to be
> officially  released?
> Thanks!
>
>
> ----- Original Message -----
> From: "James Stauffer" <st...@gmail.com>
> To: "Log4J Users List" <lo...@logging.apache.org>
> Sent: Tuesday, 25 October, 2005 15:35
> Subject: Re: Removing log4j messages from my logs
>
>
> > Which version of log4j are you using?  If you are using 1.3, then
> > those messages will go away by the time it is finally released.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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


Re: Removing log4j messages from my logs

Posted by Vladimir Corovic <vl...@certus.co.yu>.
I tried both 1.3alpha-6 and 1.2.9. When it is expected for 1.3 to be
officially  released?
Thanks!


----- Original Message -----
From: "James Stauffer" <st...@gmail.com>
To: "Log4J Users List" <lo...@logging.apache.org>
Sent: Tuesday, 25 October, 2005 15:35
Subject: Re: Removing log4j messages from my logs


> Which version of log4j are you using?  If you are using 1.3, then
> those messages will go away by the time it is finally released.


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


Re: Removing log4j messages from my logs

Posted by James Stauffer <st...@gmail.com>.
Which version of log4j are you using?  If you are using 1.3, then
those messages will go away by the time it is finally released.

On 10/25/05, Vladimir Corovic <vl...@certus.co.yu> wrote:
> Here are sample messages:
> .................................................................
> *** configurationOptionStr=null
> ** End of LogManager static initializer
> log4j:INFO Creating new logger [main] in repository [default].
> log4j:INFO Creating new logger [org.apache.log4j] in repository [default].
> log4j:INFO Creating new logger [org.apache.log4j.PropertyConfigurator] in
> repository [default].
> log4j:INFO Returning existing logger [org.apache.log4j.PropertyConfigurator]
> in repository [default].
> log4j:INFO Returning existing logger [org.apache.log4j.PropertyConfigurator]
> in repository [default].
> log4j:INFO Returning existing logger [org.apache.log4j.PropertyConfigurator]
> in repository [default].
> log4j:INFO Returning existing logger [org.apache.log4j.PropertyConfigurator]
> in repository [default].
> log4j:INFO Creating new logger [org.apache.log4j.config.PropertySetter] in
> repository [default].
> ...
> .................................................................
>
> and here is my config file
>
> .................................................................
> log4j.debug = false
>
> LOG_DIRECTORY = .
>
> log4j.appender.CON = org.apache.log4j.ConsoleAppender
> log4j.appender.Treshold = ERROR
> log4j.appender.CON.layout = org.apache.log4j.PatternLayout
> log4j.appender.CON.layout.ConversionPattern = [%r ms][%p][%t] - %m%n
>
> log4j.appender.LOGFILE = org.apache.log4j.DailyRollingFileAppender
> log4j.appender.LOGFILE.File = ${LOG_DIRECTORY}/ps-log
> log4j.appender.LOGFILE.Treshold = ERROR
> log4j.appender.LOGFILE.DatePattern = .yyyy-MM-dd@HH
> log4j.appender.LOGFILE.MaxBackupIndex = 1
> log4j.appender.LOGFILE.layout = org.apache.log4j.PatternLayout
> log4j.appender.LOGFILE.layout.ConversionPattern = [%r ms][%p][%t] - %m%n
>
> log4j.appender.TRACEFILE = org.apache.log4j.DailyRollingFileAppender
> log4j.appender.TRACEFILE.File = ${LOG_DIRECTORY}/ps-trace
> log4j.appender.TRACEFILE.Treshold = DEBUG
> log4j.appender.TRACEFILE.DatePattern = .yyyy-MM-dd@HH
> log4j.appender.TRACEFILE.MaxBackupIndex = 1
> log4j.appender.TRACEFILE.layout = org.apache.log4j.PatternLayout
> log4j.appender.TRACEFILE.layout.ConversionPattern = [%r ms][%p][%x][%F:%M] -
> %m%n
>
> log4j.rootLogger = DEBUG, LOGFILE, TRACEFILE, CON
> .................................................................
>
>
>
>
> ----- Original Message -----
> From: "James Stauffer" <st...@gmail.com>
> To: "Log4J Users List" <lo...@logging.apache.org>
> Sent: Monday, 24 October, 2005 17:10
> Subject: Re: Removing log4j messages from my logs
>
>
> > Can you post the exact messages that you want to remove and a snipet
> > from your config file showing how you set debug to false?
> >
> > On 10/24/05, Vladimir Corovic <vl...@certus.co.yu> wrote:
> > > Hello,
> > >
> > > How can I remove log4j start messages from my logs?
> > >
> > > I checked many sites, as well as official manual, but I didn't succeed.
> I
> > > tried with setting log4j.debug = false in my config file, but that
> doesn't
> > > work.
> > >
> > > Tanks in forward,
> > > Vlado
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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


Re: Removing log4j messages from my logs

Posted by Vladimir Corovic <vl...@certus.co.yu>.
Here are sample messages:
.................................................................
*** configurationOptionStr=null
** End of LogManager static initializer
log4j:INFO Creating new logger [main] in repository [default].
log4j:INFO Creating new logger [org.apache.log4j] in repository [default].
log4j:INFO Creating new logger [org.apache.log4j.PropertyConfigurator] in
repository [default].
log4j:INFO Returning existing logger [org.apache.log4j.PropertyConfigurator]
in repository [default].
log4j:INFO Returning existing logger [org.apache.log4j.PropertyConfigurator]
in repository [default].
log4j:INFO Returning existing logger [org.apache.log4j.PropertyConfigurator]
in repository [default].
log4j:INFO Returning existing logger [org.apache.log4j.PropertyConfigurator]
in repository [default].
log4j:INFO Creating new logger [org.apache.log4j.config.PropertySetter] in
repository [default].
...
.................................................................

and here is my config file

.................................................................
log4j.debug = false

LOG_DIRECTORY = .

log4j.appender.CON = org.apache.log4j.ConsoleAppender
log4j.appender.Treshold = ERROR
log4j.appender.CON.layout = org.apache.log4j.PatternLayout
log4j.appender.CON.layout.ConversionPattern = [%r ms][%p][%t] - %m%n

log4j.appender.LOGFILE = org.apache.log4j.DailyRollingFileAppender
log4j.appender.LOGFILE.File = ${LOG_DIRECTORY}/ps-log
log4j.appender.LOGFILE.Treshold = ERROR
log4j.appender.LOGFILE.DatePattern = .yyyy-MM-dd@HH
log4j.appender.LOGFILE.MaxBackupIndex = 1
log4j.appender.LOGFILE.layout = org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern = [%r ms][%p][%t] - %m%n

log4j.appender.TRACEFILE = org.apache.log4j.DailyRollingFileAppender
log4j.appender.TRACEFILE.File = ${LOG_DIRECTORY}/ps-trace
log4j.appender.TRACEFILE.Treshold = DEBUG
log4j.appender.TRACEFILE.DatePattern = .yyyy-MM-dd@HH
log4j.appender.TRACEFILE.MaxBackupIndex = 1
log4j.appender.TRACEFILE.layout = org.apache.log4j.PatternLayout
log4j.appender.TRACEFILE.layout.ConversionPattern = [%r ms][%p][%x][%F:%M] -
%m%n

log4j.rootLogger = DEBUG, LOGFILE, TRACEFILE, CON
.................................................................




----- Original Message -----
From: "James Stauffer" <st...@gmail.com>
To: "Log4J Users List" <lo...@logging.apache.org>
Sent: Monday, 24 October, 2005 17:10
Subject: Re: Removing log4j messages from my logs


> Can you post the exact messages that you want to remove and a snipet
> from your config file showing how you set debug to false?
>
> On 10/24/05, Vladimir Corovic <vl...@certus.co.yu> wrote:
> > Hello,
> >
> > How can I remove log4j start messages from my logs?
> >
> > I checked many sites, as well as official manual, but I didn't succeed.
I
> > tried with setting log4j.debug = false in my config file, but that
doesn't
> > work.
> >
> > Tanks in forward,
> > Vlado


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


Re: Removing log4j messages from my logs

Posted by James Stauffer <st...@gmail.com>.
Can you post the exact messages that you want to remove and a snipet
from your config file showing how you set debug to false?

On 10/24/05, Vladimir Corovic <vl...@certus.co.yu> wrote:
> Hello,
>
> How can I remove log4j start messages from my logs?
>
> I checked many sites, as well as official manual, but I didn't succeed. I
> tried with setting log4j.debug = false in my config file, but that doesn't
> work.
>
> Tanks in forward,
> Vlado
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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