xref: /OpenGrok/tools/logging.properties.template (revision 2d57dc692b4dd10e696ca6922510f6cecded1bfd)
1*2d57dc69SVladimir Kotal#
2*2d57dc69SVladimir Kotal# Java logging properties template used by the opengrok-reindex-project script.
3*2d57dc69SVladimir Kotal#
4*2d57dc69SVladimir Kotal
5*2d57dc69SVladimir Kotalhandlers= java.util.logging.FileHandler
6*2d57dc69SVladimir Kotal
7*2d57dc69SVladimir Kotal# Default global logging level.
8*2d57dc69SVladimir Kotal.level= FINE
9*2d57dc69SVladimir Kotal
10*2d57dc69SVladimir Kotal# The '%PROJ%' pattern will be expanded by the the opengrok-reindex-project script
11*2d57dc69SVladimir Kotal# and therefore needs to match the argument to the -p option.
12*2d57dc69SVladimir Kotaljava.util.logging.FileHandler.pattern = %PROJ%/opengrok%g.%u.log
13*2d57dc69SVladimir Kotal
14*2d57dc69SVladimir Kotal## Rotation settings
15*2d57dc69SVladimir Kotal# 50 MiB
16*2d57dc69SVladimir Kotaljava.util.logging.FileHandler.limit = 52428800
17*2d57dc69SVladimir Kotal# 30 files
18*2d57dc69SVladimir Kotaljava.util.logging.FileHandler.count = 30
19*2d57dc69SVladimir Kotal
20*2d57dc69SVladimir Kotaljava.util.logging.FileHandler.formatter = org.opengrok.indexer.logger.formatter.SimpleFileLogFormatter
21*2d57dc69SVladimir Kotal
22*2d57dc69SVladimir Kotal# Limit the message that are printed on the console.
23*2d57dc69SVladimir Kotaljava.util.logging.ConsoleHandler.level = WARNING
24*2d57dc69SVladimir Kotaljava.util.logging.ConsoleHandler.formatter = org.opengrok.indexer.logger.formatter.SimpleFileLogFormatter
25