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
Lex
dde2e69948
Getting console appender to work with node-webkit
2013-07-10 05:07:28 -07: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
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
5d6f00eda4
fixed all lint errors except ones which require refactoring of code
2013-06-04 08:17:36 +10:00
Gareth Jones
b356dec318
Getting my lint on (via bob)
2013-05-25 14:00:06 +10:00
Gareth Jones
8492519e3b
Fixing issue #137
2013-05-25 13:04:48 +10:00
Gareth Jones
936ad4da8e
fixed tests broken by alwaysIncludePattern
2013-05-05 13:44:01 +10:00
Issac Goldstand
29b02921b6
add option alwaysIncludePattern to dateTime appender to always use the filename with the pattern included when logging
2013-05-02 14:56:33 +03:00
Gary Steven
e58cf201ca
Updated for Node 0.10.x
...
net.createServer no longer emits 'connect' event
2013-03-30 03:23:58 -07:00
Gareth Jones
65e490cbd2
Fixes for version v0.10 streams, breaks log4js for older versions of node
2013-03-20 09:14:27 +11:00
Nick Howes
eb21e10208
Category excluding filter.
...
This filtering appender allows you to choose some category
names that won't be logged to the delegated appender. This
is useful if you have e.g. a category that you use to log
web requests to one file, but want to keep those entries
out of the main log file without having to explicitly list
all the other categories that you _do_ want to include.
Has one option, "exclude", which is a category name or
array of category names. The child appender is set in
"appender", modelled on the logLevelFilter.
2013-02-26 13:27:07 +00:00
Mário Freitas
8e53c6213e
fix: pass options from multiprocess appender to inner appender
2013-02-21 00:06:59 +09:00
Gareth Jones
a9307fd6da
fix for issue #100 , multiprocess appender and logLevelFilter don't play nicely
2012-11-09 16:02:16 +11:00
Gareth Jones
2b889fe776
Working date rolling file appender.
2012-09-25 08:16:59 +10:00
Gareth Jones
9ac61e37f4
Refactored where the exit handler gets added
2012-09-25 07:43:37 +10:00
Aleksey V Zapparov
f832a2ba79
Do not assign multiple exit
handlers for FA
2012-08-09 15:21:30 +02:00
Gareth Jones
7a02f39921
Fallback to \n if os.EOL is not defined
2012-07-04 09:25:08 +10:00
Gareth Jones
b6ba3bce00
Merge branch 'master' of https://github.com/nomiddlename/log4js-node
2012-07-04 09:11:07 +10:00
Gareth Jones
638ce187bb
use os.EOL instead of \n
2012-07-04 08:53:09 +10:00
Gareth Jones
a33e48cb07
Changed multiprocess appender to use a single socket per client
2012-07-04 08:44:50 +10:00
druciak
077302c772
SMTP appender migrated to nodemailer 0.3.x
2012-06-27 18:00:32 +02:00
Gareth Jones
a046523804
Moved Logger into separate file, added support for loading appenders outside log4js, removed 'name' from appender requirements
2012-06-01 11:11:07 +10:00
Gareth Jones
0901794b35
Moved abspath option checking into file appender, log4js options now passed to appenders
2012-05-31 07:50:01 +10:00
Gareth Jones
38a89dcf3d
manually merged TooTallNate's pull request #62
2012-05-29 16:49:12 +10:00
Gareth Jones
cff20b99e3
added more gelf tests
2012-02-13 08:54:35 +11:00
Gareth Jones
0a422e5749
fixed up gelf tests
2012-02-10 18:14:50 +11:00
Gareth Jones
2ab6f5fa24
Merge pull request #56 from arifamirani/master
...
Fixed tests for gelf appender
2012-01-15 14:36:55 -08:00
Arif Amirani
9bad070b8a
Changed tests to not use live udp server as it fails on CI
2012-01-13 13:00:53 +05:30
Gareth Jones
5aaa9fcd50
Merge pull request #54 from arifamirani/master
...
Add support for GELF logging using UDP
2012-01-12 15:00:11 -08:00
Arif Amirani
5bdeaf68d7
Adding gelf as an appender
2012-01-11 16:12:24 +05:30
Vincent Côté-Roy
a5b09b3ead
fix restoreConsole by making console appender not depend on _preLog4js_log
2012-01-05 08:47:15 -05:00
Gareth Jones
a999d8fc00
Fixed the file appender tests
2011-12-20 08:49:21 +11:00
Gareth Jones
78de73a274
Working version of fully-async log rolling file appender - tests need fixing though
2011-12-19 16:58:21 +11:00
Gareth Jones
f10a6e164e
windows throws an EEXIST error when renaming, need to handle it
2011-11-24 08:37:05 +11:00
Gareth Jones
cea3dc97d1
Changes to handle drain events not fired on write in linux & windows - should fix issue #44
2011-11-24 08:20:33 +11:00
Gareth Jones
7d50c45801
Rewrote file appender, fixing issue #16 and issue #31
2011-11-21 15:03:51 +11:00
Gareth Jones
342286e062
Merge pull request #40 from druciak/smtp
...
SMTP appender
2011-11-10 14:06:27 -08:00
druciak
537f1058b9
Add SMTP appender
2011-11-08 08:56:21 +01:00
Danny Brain
a95117c0d3
Add tests for multiprocess file appender
2011-11-03 09:10:02 +11:00
Danny Brain
097390bc89
Add multiprocess appender, pending tests
2011-11-02 15:49:46 +11:00
Danny Brain
8b376eb46e
Buffer the logging until the hook is ready, will prevent lost logs
2011-10-28 10:50:28 +11:00
Danny Brain
ced570413c
Pass in all appender parameters to the Hook constructor so a port can be specified
2011-10-28 10:07:48 +11:00