aboutsummaryrefslogtreecommitdiffstats
path: root/etc/log4js.json
diff options
context:
space:
mode:
Diffstat (limited to 'etc/log4js.json')
-rw-r--r--etc/log4js.json46
1 files changed, 21 insertions, 25 deletions
diff --git a/etc/log4js.json b/etc/log4js.json
index 5916344..4afacd8 100644
--- a/etc/log4js.json
+++ b/etc/log4js.json
@@ -1,52 +1,48 @@
{
- "appenders":
- [
- {
+ "appenders": {
+ "out": {"type": "stdout"},
+ "audit": {
"type": "file",
"filename": "log/audit.log",
"maxLogSize": 10240000,
"backups": 10,
- "category": ["audit"],
- "layout":
- {
+ "layout": {
"type": "messagePassThrough"
}
},
-
- {
+ "metrics": {
"type": "file",
"filename": "log/metrics.log",
"maxLogSize": 10240000,
"backups": 10,
- "category": ["metrics"],
- "layout":
- {
+ "layout": {
"type": "messagePassThrough"
}
- },
-
- {
+ },
+ "error": {
"type": "file",
"filename": "log/error.log",
"maxLogSize": 10240000,
"backups": 10,
- "category": ["error"],
- "layout":
- {
+ "layout": {
"type": "messagePassThrough"
}
},
-
- {
+ "debug": {
"type": "file",
"filename": "log/debug.log",
"maxLogSize": 10240000,
"backups": 10,
- "category": ["debug"],
- "layout":
- {
+ "layout": {
"type": "messagePassThrough"
}
- }
- ]
-}
+ }
+ },
+ "categories": {
+ "default": {"appenders": ["out"], "level": "debug"},
+ "audit": {"appenders": ["audit"], "level": "info"},
+ "metrics": {"appenders": ["metrics"], "level": "info"},
+ "error": {"appenders": ["error"], "level": "error"},
+ "debug": {"appenders": ["debug"], "level": "debug"}
+ }
+} \ No newline at end of file