tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lyallex <lyal...@gmail.com>
Subject Re: Running Tomcat under jsvc - logging problems
Date Tue, 04 Dec 2012 19:18:32 GMT
On 4 December 2012 18:50, Konstantin Kolinko <knst.kolinko@gmail.com> wrote:

> [snip]



> >
> > Any advice on how I can get the logging working will be much appreciated
> >
> >
> > Lyallex
> >
> >
> >
> > handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
> >
> > ############################################################
> > # Handler specific properties.
> > # Describes specific configuration info for Handlers.
> > ############################################################
> >
> > org.apache.juli.FileHandler.level = ALL
> > org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> > org.apache.juli.FileHandler.prefix = MyApp.
> >
> > java.util.logging.ConsoleHandler.level = ALL
> > java.util.logging.ConsoleHandler.formatter =
> > java.util.logging.SimpleFormatter
>
>
>
> 1. "java.util.logging.ConsoleHandler" prints to System.err.
>
> Some other "console logging" implementations log to System.out.
>
> Do you need a ConsoleHandler at all? (You are effectively printing the
> same log messages into two places a) ConsoleHandler, b) FileHandler ).
>

Well possibly not but it's irrelevant as logging.properties is being
ignored
so I don't get the output anyway, particularly I get no log file named
MyApp ...


>
> 2. To initialize logging properly you need to configure system
> properties "java.util.logging.config.file" and
> "java.util.logging.manager"
> the same way as they are set by catalina.sh file.
>
> Have you specified the "java.util.logging.manager" property in your
> arguments to jsvc?
>

Well no but then I never had it with 6.0.18 and that logged perfectly,
also catalina.sh is not executed when running under jsvc but I think you may
just be using that as an example ... I hope

sigh

I'll look into it

Thanks
Lyallex

>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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