summaryrefslogtreecommitdiff
path: root/settings.json.template
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2013-03-03 08:29:50 -0800
committerJohn McLear <john@mclear.co.uk>2013-03-03 08:29:50 -0800
commitfb605fb5276cf333178f88dcecd64e4e3551d139 (patch)
tree780fe0288e97f38e77955663c6c27d0a71c8d3f9 /settings.json.template
parent827c1291b59fac7efec8652eaf332cc0fd9f057f (diff)
parent5c03c039d1e4e5ea95dd903107fa982c0917d311 (diff)
downloadetherpad-lite-fb605fb5276cf333178f88dcecd64e4e3551d139.zip
Merge pull request #1569 from ether/doc/log4js-appenders
Document the endless possibilities of log4js..
Diffstat (limited to 'settings.json.template')
-rw-r--r--settings.json.template54
1 files changed, 44 insertions, 10 deletions
diff --git a/settings.json.template b/settings.json.template
index 105bfb91..359b1646 100644
--- a/settings.json.template
+++ b/settings.json.template
@@ -51,13 +51,6 @@
},
*/
- //Logging configuration. See log4js documentation for further information
- // https://github.com/nomiddlename/log4js-node
- "logconfig" :
- { "appenders": [
- { "type": "console" }
- ] },
-
//the default text of a pad
"defaultPadText" : "Welcome to Etherpad!\n\nThis pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!\n\nGet involved with Etherpad at http:\/\/etherpad.org\n",
@@ -101,9 +94,50 @@
},
*/
- /* The log level we are using, can be: DEBUG, INFO, WARN, ERROR */
- "loglevel": "INFO",
-
// restrict socket.io transport methods
"socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"]
+
+ /* The log level we are using, can be: DEBUG, INFO, WARN, ERROR */
+ "loglevel": "INFO",
+
+ //Logging configuration. See log4js documentation for further information
+ // https://github.com/nomiddlename/log4js-node
+ // You can add as many appenders as you want here:
+ "logconfig" :
+ { "appenders": [
+ { "type": "console"
+ //, "category": "access"// only logs pad access
+ }
+ /*
+ , { "type": "file"
+ , "filename": "your-log-file-here.log"
+ , "maxLogSize": 1024
+ , "backups": 3 // how many log files there're gonna be at max
+ //, "category": "test" // only log a specific category
+ }*/
+ /*
+ , { "type": "logLevelFilter"
+ , "level": "warn" // filters out all log messages that have a lower level than "error"
+ , "appender":
+ { /* Use whatever appender you want here */ }
+ }*/
+ /*
+ , { "type": "logLevelFilter"
+ , "level": "error" // filters out all log messages that have a lower level than "error"
+ , "appender":
+ { "type": "smtp"
+ , "subject": "An error occured in your EPL instance!"
+ , "recipients": "bar@blurdybloop.com, baz@blurdybloop.com"
+ , "sendInterval": 60*5 // in secs -- will buffer log messages; set to 0 to send a mail for every message
+ , "transport": "SMTP", "SMTP": { // see https://github.com/andris9/Nodemailer#possible-transport-methods
+ "host": "smtp.example.com", "port": 465,
+ "secureConnection": true,
+ "auth": {
+ "user": "foo@example.com",
+ "pass": "bar_foo"
+ }
+ }
+ }
+ }*/
+ ] },
}