Jens John
7ff053f104
fix test/gelfAppender-test.js to reflect full_message being gone
2014-07-11 12:38:29 +09:00
Gareth Jones
99e7c0981d
Merge pull request #189 from jengler/add-support-for-prerequired-appender-styles
...
Add support for prerequired appender styles
2014-06-28 08:20:12 +10:00
Vladimir Mitev
e638ff7271
Unit test.
...
Fixed the old unit tests.
Added validation for new functionality.
Signed-off-by: Vladimir Mitev <idalv@users.noreply.github.com>
2014-05-20 14:42:29 +03:00
Gareth Jones
9b538ee8ed
fixed timezone flakiness
2014-04-09 07:43:40 +10:00
Gareth Jones
e4d5228f2b
Merge branch 'flush-on-exit'
2014-04-09 07:37:17 +10:00
John Engler
6e3da6f44b
Added error throwing when error loading test file.
...
This will hopefully give us better visibility into our Travis CI
build failures.
2014-04-08 12:40:27 -07:00
John Engler
3b5eb28115
Update dateFile EOL usage to be consistent with appender.
...
From the looks of the Travis CI failure, this could be the issue
causing failures. Not sure as I can't reproduce locally. However,
it is still an inconsistency and worth fixing.
2014-04-08 10:47:18 -07: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
28f7c87a0e
Allow adding of appenders as objects
...
Previously, appenders could only be added by specifying the filepath
to the appender. This required the appender's path to be specified
either relative to the log4js installation, relative to a NODE_PATH
token, or absolute. This creates a coupling between the log4js
configurer and the log4js installation location, or a coupling between
the log4js configurer and the global NODE_PATH. This commit removes
the coupling by allowing the loading of appenders to be done relative
to the log4js configurer.
2014-03-11 02:07:58 -07:00
jci-fox
73344ba79f
fixing unit test
...
logger.log requires 2 params, and with the 1st being level and filtering the level, the log call must provide a level that will result in log messages
2014-03-04 09:27:04 -06:00
Christiaan Westerbeek
9b4c7d1574
Fixes the error with test/logglyAppender-test
...
Refs #172
I will add more relevant tests later
2014-01-16 16:39:45 +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
Emile Cantin
8b8844694f
Fixed unit tests, now with regexes.
2013-09-27 09:45:10 -04:00
Emile Cantin
abdba8e56f
Added logic to serialize Error objects correctly
...
This should fix #97 .
2013-09-26 14:55:20 -04:00
wood1986
cd286fa25f
Update layouts-test.js
2013-08-18 01:39:37 +08:00
wood1986
613474eb44
Update layouts-test.js
2013-08-15 22:45:56 +08:00
wood1986
112246dd55
Update layouts-test.js
2013-08-15 22:39:59 +08:00
wood1986
069ed31759
Update layouts-test.js
2013-08-15 22:37:01 +08:00
wood1986
9e72189574
Update date_format-test.js
2013-08-15 22:30:57 +08:00
wood1986
5a167d853a
Update date_format-test.js
2013-08-15 22:29:52 +08:00
wood1986
5755faa7bb
Update layouts-test.js
2013-08-15 22:29:36 +08:00
wood1986
1ed026a8d9
Update fileAppender-test.js
2013-08-14 17:35:47 +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
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
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
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
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
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
0a2a6c0769
don't create functions in a loop
2013-06-04 08:32:35 +10:00