# ======================== Global Configuration ============================

#.level = INFO
.level = CONFIG
#.level = FINEST

# ---------------------------- Output settings -----------------------------

#handlers = ext.java.util.logging.ConsoleHandler
#handlers = java.util.logging.ConsoleHandler
#handlers = org.apache.juli.FileHandler
#handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
#handlers = org.apache.juli.FileHandler, ext.java.util.logging.ConsoleHandler
handlers = ext.java.util.logging.DailyRollingFileHandler, ext.java.util.logging.ConsoleHandler
#handlers = ext.java.util.logging.DailyRollingFileHandler

#org.apache.juli.FileHandler.directory = ${catalina.base}/logs
#org.apache.juli.FileHandler.prefix = server.
#org.apache.juli.FileHandler.formatter = ext.java.util.logging.CustomFormatter

ext.java.util.logging.DailyRollingFileHandler.formatter = ext.java.util.logging.CustomFormatter
ext.java.util.logging.DailyRollingFileHandler.directory = ${java.io.tmpdir}
ext.java.util.logging.DailyRollingFileHandler.prefix = java.
ext.java.util.logging.DailyRollingFileHandler.suffix = .log
ext.java.util.logging.DailyRollingFileHandler.buffer = 0
ext.java.util.logging.DailyRollingFileHandler.autoflush = 0
ext.java.util.logging.DailyRollingFileHandler.pubsync = 0
ext.java.util.logging.DailyRollingFileHandler.purge = 7

ext.java.util.logging.ConsoleHandler.formatter = ext.java.util.logging.CustomFormatter

CustomFormatter.log = %d\t%p\t%t\t%m%n
#CustomFormatter.log = %d\t%p\t%t\t%m\t[%c]%n
# %% = literal '%'
# %m = log message
# %n = newline
# %c = category / logger name
# %C = calling class
# %d = timestamp
# %M = calling method
# %p = level / priority name
# %t = thread name
# %r = elapsed ms since startup 
#CustomFormatter.timestamp = yyyy-MM-dd HH:mm:ss.SSS
#CustomFormatter.timestamp = HH:mm:ss.SSS
#CustomFormatter.timestamp = HH:mm:ss

# =========================== Logger settings ==============================

# Comment this out to get class loader errors and warnings
#org.apache.catalina.loader.WebappClassLoader.level = OFF
#org.apache.catalina.loader.WebappClassLoader.level = SEVERE
