You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tomcat Random <to...@gmail.com> on 2013/08/26 21:29:10 UTC
Logging for session-replication debugging
What exactly should go in logging.properties to get the most information
about clustering/session replication?
I see two different logging suggestions, one in the docs and one in the
FAQ. Tried both but couldn't get anymore information that what's there
already coming out in the logs: No warnings, lots of INFO that seems like
things are OK.
Tomcat_7_42. My environment is two physical servers, RHEL6, each with an
instance of Tomcat.
Thanks in advance
Alec
Re: Logging for session-replication debugging
Posted by Tomcat Random <to...@gmail.com>.
Thank you, works perfectly.
On Mon, Aug 26, 2013 at 4:25 PM, Mark Eggers <it...@yahoo.com> wrote:
> On 8/26/2013 12:29 PM, Tomcat Random wrote:
>
>> What exactly should go in logging.properties to get the most information
>> about clustering/session replication?
>>
>> I see two different logging suggestions, one in the docs and one in the
>> FAQ. Tried both but couldn't get anymore information that what's there
>> already coming out in the logs: No warnings, lots of INFO that seems like
>> things are OK.
>>
>> Tomcat_7_42. My environment is two physical servers, RHEL6, each with an
>> instance of Tomcat.
>>
>> Thanks in advance
>> Alec
>>
>>
> It's been a while since I've played with this, so your mileage may vary.
>
> # wrapped for easier reading
> # added one additional handler
>
> handlers = 1catalina.org.apache.juli.**FileHandler,
> 2localhost.org.apache.juli.**FileHandler,
> 3manager.org.apache.juli.**FileHandler,
> 4host-manager.or.apache.juli.**FileHandler,
> java.util.logging.**ConsoleHandler,
> 5cluster.org.apache.juli.**FileHandler
>
> # just the new cluster log handler - all others are stock
> # logging.properties
> # beware of the wrapping
>
> 5cluster.org.apache.juli.**FileHandler.level = FINER
> 5cluster.org.apache.juli.**FileHandler.directory = ${catalina.base}/logs
> 5cluster.org.apache.juli.**FileHandler.prefix = cluster.
>
> # just the clustering logs - all others are stock logging.properties
> org.apache.catalina.tribes.**MESSAGES.level = FINE
> org.apache.catalina.tribes.**MESSAGES.handlers =
> 5cluster.org.apache.juli.**FileHandler
>
> org.apache.catalina.tribes.**level = FINE
> org.apache.catalina.tribes.**handlers =
> 5cluster.org.apache.juli.**FileHandler
>
> org.apache.catalina.ha.level = FINE
> org.apache.catalina.ha.**handlers = 5cluster.org.apache.juli.**FileHander
>
> org.apache.catalina.ha.deploy.**level = INFO
> org.apache.catalina.ha.deploy.**handlers =
> 5cluster.org.apache.juli.**FileHandler
>
> Set logging at the desired level.
>
> I think I've posted this to the mailing list before . . .
>
> /mde/
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<us...@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Logging for session-replication debugging
Posted by Mark Eggers <it...@yahoo.com>.
On 8/26/2013 12:29 PM, Tomcat Random wrote:
> What exactly should go in logging.properties to get the most information
> about clustering/session replication?
>
> I see two different logging suggestions, one in the docs and one in the
> FAQ. Tried both but couldn't get anymore information that what's there
> already coming out in the logs: No warnings, lots of INFO that seems like
> things are OK.
>
> Tomcat_7_42. My environment is two physical servers, RHEL6, each with an
> instance of Tomcat.
>
> Thanks in advance
> Alec
>
It's been a while since I've played with this, so your mileage may vary.
# wrapped for easier reading
# added one additional handler
handlers = 1catalina.org.apache.juli.FileHandler,
2localhost.org.apache.juli.FileHandler,
3manager.org.apache.juli.FileHandler,
4host-manager.or.apache.juli.FileHandler,
java.util.logging.ConsoleHandler,
5cluster.org.apache.juli.FileHandler
# just the new cluster log handler - all others are stock
# logging.properties
# beware of the wrapping
5cluster.org.apache.juli.FileHandler.level = FINER
5cluster.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
5cluster.org.apache.juli.FileHandler.prefix = cluster.
# just the clustering logs - all others are stock logging.properties
org.apache.catalina.tribes.MESSAGES.level = FINE
org.apache.catalina.tribes.MESSAGES.handlers =
5cluster.org.apache.juli.FileHandler
org.apache.catalina.tribes.level = FINE
org.apache.catalina.tribes.handlers =
5cluster.org.apache.juli.FileHandler
org.apache.catalina.ha.level = FINE
org.apache.catalina.ha.handlers = 5cluster.org.apache.juli.FileHander
org.apache.catalina.ha.deploy.level = INFO
org.apache.catalina.ha.deploy.handlers =
5cluster.org.apache.juli.FileHandler
Set logging at the desired level.
I think I've posted this to the mailing list before . . .
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org