You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Taylor, Larry" <hi...@visa.com> on 2016/12/08 00:31:34 UTC
RE: Is there a class or way in Tomcat to write
org.apache.catalina.authenticator messages to a different logfile
Hello,
Is there a class or way in Tomcat to write org.apache.catalina.authenticator messages to a different logfile?
I'm using Tomcat 8.0.9 - I have logging turned on for the realm authentication but i cannot get authentication messages to write to a different log prefix file other than catalalina.out.
Is there a way to do this and keep the normal server messages writing to catalina.out?
In conf/logging.properties - this writes fine to catalina.out
############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers .
############################################################
org.apache.catalina.realm.level = FINE
org.apache.catalina.realm.useParentHandlers = true
org.apache.catalina.authenticator.level = FINE
org.apache.catalina.authenticator.useParentHandlers = true
I did not see any org.apache.catalina.authenticator.juli.AsyncFileHandler classes to do this -
I need somthing like:
org.apache.catalina.authenticator.juli.AsyncFileHandler.prefix = authuser.
thanks for any information on how to configure this.
-Larry
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Is there a class or way in Tomcat to write
org.apache.catalina.authenticator messages to a different logfile
Posted by Mark Thomas <ma...@apache.org>.
On 08/12/2016 00:31, Taylor, Larry wrote:
>
> Hello,
>
> Is there a class or way in Tomcat to write org.apache.catalina.authenticator messages to a different logfile?
>
> I'm using Tomcat 8.0.9 - I have logging turned on for the realm authentication but i cannot get authentication messages to write to a different log prefix file other than catalalina.out.
>
> Is there a way to do this and keep the normal server messages writing to catalina.out?
> In conf/logging.properties - this writes fine to catalina.out
> ############################################################
> # Handler specific properties.
> # Describes specific configuration info for Handlers .
> ############################################################
> org.apache.catalina.realm.level = FINE
> org.apache.catalina.realm.useParentHandlers = true
> org.apache.catalina.authenticator.level = FINE
> org.apache.catalina.authenticator.useParentHandlers = true
>
>
> I did not see any org.apache.catalina.authenticator.juli.AsyncFileHandler classes to do this -
> I need somthing like:
> org.apache.catalina.authenticator.juli.AsyncFileHandler.prefix = authuser.
>
>
> thanks for any information on how to configure this.
The following patch applied to a default Tomcat logging configuration
should do what you want:
http://home.apache.org/~markt/dev/auth-logging.path
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org