Skip to content

Instantly share code, notes, and snippets.

@Zensey
Created October 21, 2015 18:34
Show Gist options
  • Save Zensey/2e5cbae52904bc0ed412 to your computer and use it in GitHub Desktop.
Save Zensey/2e5cbae52904bc0ed412 to your computer and use it in GitHub Desktop.
log4js how to set default logging levels for channels
{
"replaceConsole": false,
"appenders": [
{
"type": "console",
"layout_": {
"type": "pattern",
"pattern": "%d %p %c - %m"
}
},
{
"type": "file",
"filename": "logs/__log__",
"maxLogSize": 2048000,
"backups": 30,
"category": "[all]"
}
],
"levels": {
"[all]": "ALL",
"App.SPort": "ALL",
"App.SQL": "OFF",
"App.Scheduler": "ALL"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment