Vladimir Mitev
f8b6cc7c39
Revert "Update connect-logger.js to work correctly with express"
...
This reverts commit d18fb466fb
.
2014-05-26 15:56:23 +03:00
mishless
d18fb466fb
Update connect-logger.js to work correctly with express
...
When used with express levels are wrong since send() does not call writeHead, but sets responseCode on response.
2014-05-23 13:58:52 +03:00
Vladimir Mitev
2daf29b400
Clusterred appender should consider the categories.
...
It turns out that whenever the clusterred appender is used the log event is passed to all actual appenders.
The actual appender's category is ignored.
Signed-off-by: Vladimir Mitev <idalv@users.noreply.github.com>
2014-05-20 13:45:46 +03:00
Gareth Jones
614127bb10
added shutdown to datefile
2014-04-22 10:05:37 +10:00
Gareth Jones
a549df44b4
Merge pull request #199 from lulurun/fix_file_appender
...
fix shutdown method: make sure to callback when write completed immediat...
2014-04-22 09:58:03 +10:00
Xiaolu Liu
f5a76d9073
file won't get rolled if the process restarted daily
2014-04-24 00:07:11 +09:00
Xiaolu Liu
29d941f0a6
fix shutdown method: make sure to callback when write completed immediately
2014-04-21 16:27:51 +09:00
Gareth Jones
e4d5228f2b
Merge branch 'flush-on-exit'
2014-04-09 07:37:17 +10:00
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
470baa6c09
Merge pull request #187 from jci-fox/addHasLogger
...
adding ability to check if a logger exists
2014-03-05 13:16:51 +11:00
jci-fox
fd05d90c2f
adding ability to check if a logger exists
...
This allows for not accidentally adding a non-configured logger
2014-03-04 09:45:56 -06:00
jci-fox
22c156582f
Adding level checks on dynamic logging
...
using levels.toLevel and this.isLevelEnabled prior to emiting the event will prevent the appenders from being notified if the log level provided is below the loggers level.
2014-03-04 09:08:27 -06:00
Christiaan Westerbeek
770f2da627
Cleanup
2014-01-10 21:59:39 +01:00
Christiaan Westerbeek
eb51aa99be
First working version
...
tried examples/loggly-appender.js [OK]
2014-01-10 21:51:08 +01:00
Christiaan Westerbeek
5286c50375
Added the basic files for Loggly appender
...
appender, example, test
not tested yet!
2014-01-10 21:18:16 +01:00
Matthias Adler
2118d8f7b3
fix 'remote-addr' property in connect-logger
2013-12-21 19:42:44 +01:00
Emile Cantin
abdba8e56f
Added logic to serialize Error objects correctly
...
This should fix #97 .
2013-09-26 14:55:20 -04:00
Karl Lam
b9bba00d8c
GELF time precision should be millisecond level
2013-09-16 18:31:23 +08:00
wood1986
7888381991
Update layouts.js
2013-08-18 01:43:48 +08:00
wood1986
6df4753822
Update layouts.js
2013-08-18 01:36:07 +08:00
wood1986
2d177d517b
Update date_format.js
2013-08-13 23:04:52 +08:00
wood1986
21aebbde33
Update layouts.js
2013-08-13 23:04:11 +08:00
Marcin Kielar
61beac28d3
Clustered appender for log4js.
...
+ lib/appenders/clustered.js
+ test/clusteredAppender-test.js
Instead os using sockets (like multiprocess) or dead and unmaintained hook.io, Clustered appender
uses process.send(message) / worker.on('message', callback) mechanisms for transporting data
between worker processes and master logger.
Master logger takes an "appenders" array of actual appenders that are triggered when worker appenders send some data.
This guarantees sequential writes to appenders, so the log messages are not mixed in single lines of log.
2013-08-09 00:04:25 +02:00
Gareth Jones
8ad1cd67e2
formatting fixes, unnecessary code removed
2013-08-05 11:40:59 +10:00
Gareth Jones
4905761f60
Merge pull request #119 from UniversityofWarwick/category-filter
...
Category excluding filter.
2013-08-04 18:25:32 -07:00
Gareth Jones
2a38f460dc
tried adding process.nexttick - didn't help
2013-08-05 07:56:02 +10:00
Gareth Jones
ce8b6b06b9
trying out a shutdown function
2013-08-05 07:21:12 +10: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
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
0e5da1d361
moved debug fn out to own module, added tests
2013-06-24 08:51:10 +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
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
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