forked from ether/etherpad-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
log4js: Deprecate the
logconfig
setting
This will make it possible to upgrade log4js in a future version.
- Loading branch information
Showing
5 changed files
with
7 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -586,58 +586,6 @@ | |
*/ | ||
"loglevel": "${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 occurred in your EPL instance!" | ||
, "recipients": "[email protected], [email protected]" | ||
, "sendInterval": 300 // 60 * 5 = 5 minutes -- 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": "[email protected]", | ||
"pass": "bar_foo" | ||
} | ||
} | ||
} | ||
} | ||
*/ | ||
|
||
] | ||
}, // logconfig | ||
|
||
/* Override any strings found in locale directories */ | ||
"customLocaleStrings": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -590,58 +590,6 @@ | |
*/ | ||
"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 occurred in your EPL instance!" | ||
, "recipients": "[email protected], [email protected]" | ||
, "sendInterval": 300 // 60 * 5 = 5 minutes -- 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": "[email protected]", | ||
"pass": "bar_foo" | ||
} | ||
} | ||
} | ||
} | ||
*/ | ||
|
||
] | ||
}, // logconfig | ||
|
||
/* Override any strings found in locale directories */ | ||
"customLocaleStrings": {}, | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters