Skip to content

Commit 10ed378

Browse files
committed
Updated README
1 parent 78edbb6 commit 10ed378

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,46 @@
2828
log.Error("This is a debugging statement ... will show")
2929
}
3030

31+
## Configuration Environment Variables
32+
33+
// Path to configuration file
34+
export LOG_CONFIG=/path/to/config.properties
35+
36+
// Override Global Debug Level
37+
export LOG_LEVEL=DEBUG
38+
39+
### Exampe config.properties
40+
41+
#
42+
# Global Debug Level
43+
# Default: WARN
44+
log.level=DEBUG
45+
46+
#
47+
# Enable Trace. This might be a slow operation
48+
# Default: false
49+
log.trace=true
50+
51+
#
52+
# Set Debug Level for a logger named `xyzlogger`
53+
#
54+
log.level.xyzlogger=WARN
55+
56+
#
57+
# Define a log writer. By default there is one writer to stdout
58+
#
59+
log.writer.logger0.type=stdout
60+
61+
#
62+
# Define a log writer to a file
63+
#
64+
log.writer.logger1.type=file
65+
log.writer.logger1.name=one
66+
log.writer.logger1.level=INFO
67+
log.writer.logger1.maxfiles=10
68+
log.writer.logger1.maxSize=1073741824
69+
log.writer.logger1.dir=./log
70+
3171

3272
## Configuration
3373

0 commit comments

Comments
 (0)