Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardorg79 committed Jul 1, 2018
1 parent 78edbb6 commit 10ed378
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,46 @@
log.Error("This is a debugging statement ... will show")
}

## Configuration Environment Variables

// Path to configuration file
export LOG_CONFIG=/path/to/config.properties

// Override Global Debug Level
export LOG_LEVEL=DEBUG

### Exampe config.properties

#
# Global Debug Level
# Default: WARN
log.level=DEBUG

#
# Enable Trace. This might be a slow operation
# Default: false
log.trace=true

#
# Set Debug Level for a logger named `xyzlogger`
#
log.level.xyzlogger=WARN

#
# Define a log writer. By default there is one writer to stdout
#
log.writer.logger0.type=stdout

#
# Define a log writer to a file
#
log.writer.logger1.type=file
log.writer.logger1.name=one
log.writer.logger1.level=INFO
log.writer.logger1.maxfiles=10
log.writer.logger1.maxSize=1073741824
log.writer.logger1.dir=./log


## Configuration

Expand Down

0 comments on commit 10ed378

Please sign in to comment.