logo       

Re: can't disable Log: msg#00024

java.jetty.general

Subject: Re: can't disable Log

Jack,

You have to configure logging (to be disabled) BEFORE any log events take place.
This means that configuring it in jetty.xml will not be good enough.

You need to write your own start.jar (or other main method) to configure
logging before any Jetty mechanisms try to use the log.

Depending on what version you are using, you may be able to use some system
properties to disable the log as well.

regards



Jack wrote:
I noticed each time I configure my server the following message is logged (to
stderr):

10:56:04.415 EVENT Checking Resource aliases

So I added the statement:

org.mortbay.util.Log.instance().disableLog();

but it has just changed the output to:

1094807911733: EVENT ,Checking Resource
aliases,[Thread-0]org.mortbay.util.FileResource.<clinit>(FileResource.java:46)

As I don't want ANY log message be displayed, how can I turn logging off?
Thx




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
Jack wrote:
I noticed each time I configure my server the following message is logged (to
stderr):

10:56:04.415 EVENT Checking Resource aliases

So I added the statement:

org.mortbay.util.Log.instance().disableLog();

but it has just changed the output to:

1094807911733: EVENT ,Checking Resource
aliases,[Thread-0]org.mortbay.util.FileResource.<clinit>(FileResource.java:46)

As I don't want ANY log message be displayed, how can I turn logging off?
Thx




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise