We discovered that we couldn’t see all the log entries we needed when we ran into some problems. After reversed engineered the code, we found the way to enable those logging parameters for com.lotus.* and not only com.ibm.*

Change logging.properties where entries in bold are added or changed.

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

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

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

1catalina.org.apache.juli.AsyncFileHandler.level = FINEST
1catalina.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.AsyncFileHandler.prefix = catalina.
1catalina.org.apache.juli.AsyncFileHandler.maxDays = 90
1catalina.org.apache.juli.AsyncFileHandler.encoding = UTF-8

2localhost.org.apache.juli.AsyncFileHandler.level = FINEST
2localhost.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.AsyncFileHandler.prefix = com.ibm.
2localhost.org.apache.juli.AsyncFileHandler.maxDays = 90
2localhost.org.apache.juli.AsyncFileHandler.encoding = UTF-8

3localhost.org.apache.juli.AsyncFileHandler.level = FINEST
3localhost.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
3localhost.org.apache.juli.AsyncFileHandler.prefix = com.lotus.
3localhost.org.apache.juli.AsyncFileHandler.maxDays = 90
3localhost.org.apache.juli.AsyncFileHandler.encoding = UTF-8


java.util.logging.ConsoleHandler.level = FINEST
java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter
java.util.logging.ConsoleHandler.encoding = UTF-8


############################################################
# 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.AsyncFileHandler

# For example, set the org.apache.catalina.util.LifecycleBase logger to log
# each component that extends LifecycleBase changing state:
#org.apache.catalina.util.LifecycleBase.level = FINE

# To see debug messages in TldLocationsCache, uncomment the following line:
#org.apache.jasper.compiler.TldLocationsCache.level = FINE

# To see debug messages for HTTP/2 handling, uncomment the following line:
#org.apache.coyote.http2.level = FINE

# To see debug messages for WebSocket handling, uncomment the following line:
#org.apache.tomcat.websocket.level = FINE

# To see debug messages for Sametime Proxy, uncomment the following line:
com.ibm.level=FINEST
com.ibm.handlers = 2localhost.org.apache.juli.AsyncFileHandler

# To see debug messages for Sametime Proxy, uncomment the following line:
com.lotus.level=FINEST
com.lotus.handlers = 3localhost.org.apache.juli.AsyncFileHandler

# To see debug messages for APNS outgoing traffic of Netty internal, uncomment the following line:
#io.netty.level=FINEST
#io.netty.handlers =2localhost.org.apache.juli.AsyncFileHandler
 

Visits: 432

By angioni

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.