|
1 |
| -############################################################ |
2 |
| -# Logging Configuration File |
3 | 1 | #
|
4 |
| -# You can use a different file by specifying a filename |
5 |
| -# with the java.util.logging.config.file system property. |
6 |
| -# For example java -Djava.util.logging.config.file=myfile |
7 |
| -############################################################ |
8 |
| - |
9 |
| -############################################################ |
10 |
| -# Global properties |
11 |
| -############################################################ |
12 |
| - |
13 |
| -# "handlers" specifies a comma separated list of log Handler |
14 |
| -# classes. These handlers will be installed during VM startup. |
15 |
| -# Note that these classes must be on the system classpath. |
16 |
| -# By default we only configure a ConsoleHandler, which will only |
17 |
| -# show messages at the INFO and above levels. |
18 |
| -#handlers= java.util.logging.ConsoleHandler |
19 |
| -# Available logging levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL |
20 |
| -# OFF will give no output, SEVERE will give very little output, FINEST and ALL will give lots of output. |
| 2 | +# Java logging properties template used by the opengrok-reindex-project script. |
21 | 3 | #
|
22 | 4 |
|
23 |
| -# To also add the FileHandler, use the following line instead. |
24 |
| -# (vk) we only want FileHandler |
25 | 5 | handlers= java.util.logging.FileHandler
|
26 |
| -# java.util.logging.ConsoleHandler |
27 | 6 |
|
28 | 7 | # Default global logging level.
|
29 |
| -# This specifies which kinds of events are logged across |
30 |
| -# all loggers. For any given facility this global level |
31 |
| -# can be overriden by a facility specific level |
32 |
| -# Note that the ConsoleHandler also has a separate level |
33 |
| -# setting to limit messages printed to the console. |
34 |
| -#.level= ALL |
35 | 8 | .level= FINE
|
36 | 9 |
|
37 |
| -############################################################ |
38 |
| -# Handler specific properties. |
39 |
| -# Describes specific configuration info for Handlers. |
40 |
| -############################################################ |
41 |
| - |
42 |
| -# default file output is in user's home directory. |
43 |
| -#java.util.logging.FileHandler.pattern = %hjava%u.log |
44 | 10 | java.util.logging.FileHandler.pattern = DIR_TO_BE/opengrok%g.%u.log
|
45 |
| -# big |
| 11 | + |
| 12 | +## Rotation settings |
| 13 | +# 50 MiB |
46 | 14 | java.util.logging.FileHandler.limit = 52428800
|
47 | 15 | # 30 files
|
48 | 16 | java.util.logging.FileHandler.count = 30
|
49 |
| -#java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter |
| 17 | + |
50 | 18 | java.util.logging.FileHandler.formatter = org.opengrok.indexer.logger.formatter.SimpleFileLogFormatter
|
51 | 19 |
|
52 |
| -# Limit the message that are printed on the console to INFO and above. |
53 |
| -#java.util.logging.ConsoleHandler.level = INFO |
| 20 | +# Limit the message that are printed on the console. |
54 | 21 | java.util.logging.ConsoleHandler.level = WARNING
|
55 | 22 | java.util.logging.ConsoleHandler.formatter = org.opengrok.indexer.logger.formatter.SimpleFileLogFormatter
|
56 |
| - |
57 |
| - |
58 |
| -############################################################ |
59 |
| -# Facility specific properties. |
60 |
| -# Provides extra control for each logger. |
61 |
| -############################################################ |
62 |
| - |
63 |
| -# For example, set the com.xyz.foo logger to only log SEVERE |
64 |
| -# messages: |
65 |
| -#com.xyz.foo.level = SEVERE |
0 commit comments