I don't understand this...
I will all messages from the tomcat installation forward to a syslog server.

In Debian ist located the logging.propeties under 
/etc/tomcat7/logging.properties with this content:

handlers = 1catalina.org.apache.juli.FileHandler, 
2localhost.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

.handlers = 1catalina.org.apache.juli.FileHandler, 
java.util.logging.ConsoleHandler

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 
2localhost.org.apache.juli.FileHandler

what must be change to log all tomcat messages into syslogserver?

Many thx Karsten


-----Ursprüngliche Nachricht-----
Von: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Gesendet: Dienstag, 14. Februar 2017 16:10
An: Tomcat Users List
Betreff: Re: logging to syslog

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Karsten,

On 2/14/17 8:51 AM, Schöke, Karsten wrote:
> Hello,
> 
> it' possible that all messages in catalina.out also log to syslog? 
> I use tomcat7 under Debian Jessie.

I think your best bet is to use log4j as your server logger and use their 
SyslogAppender.

But Tomcat doesn't directly-support logging to syslog.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJYox2tAAoJEBzwKT+lPKRY5boQAIDISEk5+V8gAqUU1cdbV/OY
UhwD/dSFd3Iofg6ynHBoMdh64NstbWWFytqqXLZ86bAcsITJ4DBo55oqpiS0n0ki
5aMaaCKKmGIfQFsGl+gk7YKdYWrq2wbv4MHkdcArQc14A/gxiy130S8y/FD8aqr/
CtXkLeMj+qXqwC8CBasqBMQ8laF/Thj1reWy/9x1/xQNzASchHA2KHaqWb1atUed
timQMga9t97W3FDxDv68tCcgftS1FEid1PvamjH8r2BPJbxxtTKvhnZl5rReSp6m
+ckzHfKpv4kt1tEK/ta0AaVeKKa3sc8UQDtXBifOMKYoiYTCjKHoEncFCvsVMXED
iGstDBYWDfa+caoW/cosq9ZkyRrP/Qkh1N50wmVz5W9OMTcSzr4qihTDsLz9aZkY
uGZpx8sc5konXPR+9apc3cRf5uOmwsG1AjqYUfuynYai1VWfdtBFW35AUZf0AhDO
Fex/fxQFWCdfZ1mhq4GmM5/y7F7JQc0pbjScXzXfPxrl6xTvml40TdwA5n74okfv
2GDiSVWoSIn9ps/e3lB4/r40JQ9oDzGuDOa/tjtgQ+d578pgf8qQjKkBfLqK/Oxd
z2T/OD8dN75zORi1uwKkYWr6K1R+ojuxzFuxh5VuLyBAvTTYFYlLzBECIF63vPuN
9vOhIybBnfzZGUzzVs66
=xd3v
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to