John Engler
633ed3cddb
Support for disabling log writes on shutdown.
...
Updated logger.js to support disabling all log writes.
Updated log4js.js shutdown function to disable log writes.
Added tests.
Update gitignore to ignore rolling date stream's test output.
2014-04-07 19:06:29 -07:00
John Engler
8ca092cdb9
Removed callback to write, as it is not needed.
2014-04-05 16:14:56 -07:00
John Engler
3ec9811b5e
Update log4js module to expose a shutdown function.
...
loadAppender will check for a shutdown function exposed by
a loaded appender. If present, it will be cached so that the
shutdown function can execute it.
The intent here is that a Node application would not invoked
process.exit until after the log4js shutdown callback returns.
2014-04-05 15:12:45 -07:00
Gareth Jones
2a38f460dc
tried adding process.nexttick - didn't help
2013-08-05 07:56:02 +10:00
Gareth Jones
9f77734f74
test case for flush on exit
2013-08-05 07:55:07 +10:00
Gareth Jones
ce8b6b06b9
trying out a shutdown function
2013-08-05 07:21:12 +10:00
Gareth Jones
1e17f88ded
0.6.7
2013-08-02 11:38:34 +10:00
Gareth Jones
d25e1abd48
Merge pull request #142 from crisply/master
...
Allows use of Console Appender when using with node-webkit
2013-07-14 18:32:26 -07:00
Lex
dde2e69948
Getting console appender to work with node-webkit
2013-07-10 05:07:28 -07:00
Gareth Jones
351a912a86
simplified the reload config code a little, moved the tests into their own file, improved coverage
2013-07-09 09:24:11 +10:00
Gareth Jones
c5fd75dac3
removed check on undefined configState.filename - should not happen, and is covered by the statSync anyway
2013-07-09 08:01:41 +10:00
Gareth Jones
4dd5989d27
Merge branch 'master' of https://github.com/nomiddlename/log4js-node
...
Conflicts:
test/gelfAppender-test.js
2013-07-08 15:24:29 +10:00
Gareth Jones
46721465a1
Merge pull request #140 from karlvlam/master
...
Add custom field support to GELF appender
2013-07-07 16:17:23 -07:00
Gareth Jones
76ff7aa5fa
improved coverage of date format
2013-07-08 08:51:42 +10:00
Gareth Jones
be5fa838be
improved coverage of hookio appender
2013-07-08 08:46:11 +10:00
Gareth Jones
a86bed975c
improved coverage of lib/log4js.js
2013-07-08 08:18:48 +10:00
Karl Lam
baaebef2ed
GELF appender - test case covers custom fields, remove unused
...
console.log
2013-07-05 15:28:10 +08:00
Karl Lam
837d007de3
GELF appender can add customFields to config for every message
2013-07-05 11:23:59 +08:00
Karl Lam
be754f0c0e
GELF appender can add custom fields
2013-07-05 10:54:31 +08:00
Gareth Jones
946b216a79
improved coverage of rolling file stream
2013-07-05 08:36:42 +10:00
Gareth Jones
508dbdadf8
improved coverage of gelf appender
2013-07-05 08:04:16 +10:00
Gareth Jones
2e7f6e5a66
improved coverage of logger
2013-07-01 08:24:29 +10:00
Gareth Jones
cbadb5fa19
improved coverage of multiprocess appender
2013-07-01 08:24:06 +10:00
Gareth Jones
c258470cda
improved coverage of file appenders
2013-06-28 08:44:54 +10:00
Gareth Jones
2b070e5470
Fixed a problem when tests run in node 0.8
2013-06-28 07:55:25 +10:00
Gareth Jones
4cd546e8b3
improved coverage of baserollingfilestream
2013-06-27 08:46:18 +10:00
Gareth Jones
0e5da1d361
moved debug fn out to own module, added tests
2013-06-24 08:51:10 +10:00
Gareth Jones
fc7f686f65
improved coverage for console appender
2013-06-18 08:47:32 +10:00
Gareth Jones
4a8f0580de
improved coverage for connect-logger
2013-06-18 08:47:18 +10:00
Gareth Jones
f50fab2b86
improved coverage for connect logger
2013-06-17 16:01:22 +10:00
Gareth Jones
f1c0767ca3
improved coverage
2013-06-17 16:01:03 +10:00
Gareth Jones
652888944b
improved coverage for date_format
2013-06-17 16:00:42 +10:00
Gareth Jones
efc4e36317
improved coverage for layouts
2013-06-14 08:13:16 +10:00
Gareth Jones
d2f30b473f
added test to improve levels coverage
2013-06-14 07:28:55 +10:00
Gareth Jones
fa179ecba2
added a delay to dateFile test, to let the filesystem catch up
2013-06-06 08:00:34 +10:00
Gareth Jones
dd25d30228
rolled back my clever map+join, because it broke the tests
2013-06-06 07:53:22 +10:00
Gareth Jones
11fe5bde5f
increased test coverage for smtp appender
2013-06-05 18:30:11 +10:00
Gareth Jones
41ddf5eea7
merged util.format branch (fixes a lint error and simplifies the code)
2013-06-05 08:52:07 +10:00
Gareth Jones
81fa9c3568
removed unnecessary argument to createNoLogCondition
2013-06-05 08:38:39 +10:00
Gareth Jones
7ca517b5ed
simplified createNoLogCondition
2013-06-05 08:37:27 +10:00
Gareth Jones
6368de1094
refactored pattern layout
2013-06-05 08:02:10 +10:00
Gareth Jones
94dbd22c71
reduced complex function to smaller ones
2013-06-04 08:37:36 +10:00
Gareth Jones
0a2a6c0769
don't create functions in a loop
2013-06-04 08:32:35 +10:00
Gareth Jones
5d6f00eda4
fixed all lint errors except ones which require refactoring of code
2013-06-04 08:17:36 +10:00
Gareth Jones
f998d7e81a
more linting
2013-05-30 08:45:15 +10:00
Gareth Jones
46ae1a586d
more linting
2013-05-30 08:26:26 +10:00
Gareth Jones
516320c79a
more linting
2013-05-30 08:26:03 +10:00
Gareth Jones
40ec9e98e4
more linting
2013-05-30 08:00:04 +10:00
Gareth Jones
cc2e94cf11
more linting
2013-05-30 07:58:09 +10:00
Gareth Jones
2de838bc76
more linting
2013-05-30 07:56:28 +10:00