Configuration
A configuration file is a JSON file that contains an array of configuration rules.
[
{
...
},
{
...
}
]
A configuration file is a JSON file that contains an array of configuration rules.
[
{
...
},
{
...
}
]
A configuration rule specifies how the loggers should behave.
{
"patterns": [ "test" ],
"level": "Debug",
"appenders": [
{
"name": "Log.DefaultAppender"
}
]
}
It has following fields.
Field | Description |
---|---|
patterns | An array of regular expressions to match the names of the loggers |
level | The starting level to enable logging |
appenders | An array of appender configurations |
An appender configuration is used to configure each appender, which outputs the logging information.
{
"name": "Log.DefaultAppender",
"options": {
"prefixPattern": "..."
}
}
It has following fields.
Field | Description |
---|---|
name | The class name of the appender |
options | The JSON object(map) to hold the option values |
Contribute on Github! Edit this section.