623 Commits

Author SHA1 Message Date
Gareth Jones
5975159470 fix(test): moved smtpAppender test to tap 2016-12-28 17:02:01 +11:00
Gareth Jones
d685b18a97 fix(test): moved newLevel and subcategories tests to tap 2016-12-28 13:00:21 +11:00
Gareth Jones
e45476f24d fix(test): moved console, logger, logstash tests to tap 2016-12-27 18:52:38 +11:00
Gareth Jones
59186499ca fix(test): moved configuration test to tap 2016-12-27 14:38:39 +11:00
Gareth Jones
d8e87dc7f5 fix(test): moved category filter test to tap 2016-12-27 13:11:50 +11:00
Gareth Jones
d4a1971b27 test(multiprocess): bumped up the timeout, as tests run slower with cov 2016-12-27 08:49:36 +11:00
Gareth Jones
a78af6b23a test(tap): replaced tape with tap, moved loggly test to tap 2016-12-27 08:35:39 +11:00
Gareth Jones
399562737a Merge branch 'es6-refactor' of https://github.com/e-cloud/log4js-node into e-cloud-es6-refactor 2016-12-21 22:08:00 +11:00
Gareth Jones
c478c53db1 Fix for #397 - multiprocess shutdown 2016-12-21 08:24:09 +11:00
Gareth Jones
99571a5c9a added passing shutdown function to addAppender, also added enableLogWrites call to clearAppenders 2016-12-15 08:17:44 +11:00
e-cloud
3e4f3a66f3 style: format test code
a error occur in `loggin-test.js` - 'invalid configuration'.

It may reveal some internal defects of this library.

Another problem occurs in `configureNoLevels-test.js`. I mark a
**todo** there.
2016-12-12 22:23:39 +08:00
e-cloud
ff182149f3 test(deps): upgrade vows and sandboxed-module to support node v7
add a missing dependency - axios.
adjust tests to be compatible with latest sandboxed-module.
2016-12-12 21:07:27 +08:00
Chi Thu Le
9eb0f9dbd0 fix for #315 - Include milliseconds in format ISO8601_WITH_TZ_OFFSET 2016-11-10 10:35:19 +01:00
sparklton
540cd0f886 Merge remote-tracking branch 'refs/remotes/nomiddlename/master'
# Conflicts:
#	test/vows/logFacesAppender-test.js
2016-11-06 09:10:07 +02:00
Gareth Jones
3a627144fb Shutdown now removes the config reload timer (fix for issue #414) 2016-11-04 08:33:40 +11:00
Gareth Jones
f4e361120b fixed broken logstash test 2016-11-03 08:46:56 +11:00
Gareth Jones
281386a30c added test for SIGHUP handler 2016-11-02 08:46:34 +11:00
Gareth Jones
7f078161e4 fixed to use streamroller 2016-11-02 08:08:28 +11:00
Gareth Jones
dc831b8a99 updated streamroller, because 0.1.0 was broken 2016-10-23 12:02:16 +11:00
Gareth Jones
2b84671471 changed default appender to stdout, replaced streams with streamroller, started removal of vows tests 2016-10-23 11:50:53 +11:00
sparklton
e355dce23a Merge remote-tracking branch 'refs/remotes/nomiddlename/master' 2016-08-12 18:04:56 +03:00
sparklton
0288f5cb9a Added HTTP based sending functionality
logFacesAppender can now be used with either UDP or HTTP transport for
sending out logs to server. HTTP option is added to specifically target
client applications running in browsers. UDP option is mostly for using
on server side.
2016-08-12 18:02:40 +03:00
sparklton
702ff3e6a2 Merge remote-tracking branch 'refs/remotes/nomiddlename/master' 2016-08-12 17:59:38 +03:00
Gareth Jones
08315bbfb9 Fix for stack traces appearing twice in node v6 - issue #389 2016-06-15 09:35:08 +10:00
Gareth Jones
60c48a58d7 Merge pull request #390 from AllClassPenguin/custom-levels
Custom levels
2016-06-15 08:06:02 +10:00
Gareth Jones
92333e25e5 Merge pull request #387 from sparklton/master
logFaces appender
2016-06-15 08:02:04 +10:00
Brice Burgess
af8dc5d963 update hipchat appendender test for hipchat-notifier 2016-06-10 12:12:00 -05:00
Blake Ambrose
056575faf4 fixed up lint failure on test 2016-06-08 15:33:20 +10:00
Blake Ambrose
9768e0b470 added additional failure test cases 2016-06-08 15:31:33 +10:00
Blake Ambrose
76d3438b4f added getLevel to retrieve custom level, added additional coverage tests 2016-06-08 14:21:28 +10:00
Blake Ambrose
8e0a0f9f53 Added ability to add custom log levels to client, simillar to log4j for java 2016-06-08 11:51:36 +10:00
sparklton
09621f0e4a correcting tests
use default process id and host name if not supported by the run time
2016-05-23 00:55:21 +03:00
Gareth Jones
30bc960d8a removed extraneous sys require 2016-05-05 16:44:32 +10:00
Gareth Jones
538c34c8f4 fixed a few more jshint problems (turned a couple off as well) 2016-05-05 16:37:15 +10:00
sparklton
0201445006 logFaces appender corrections
Added unit tests and configuration defaults
2016-05-04 14:11:41 +03:00
Gareth Jones
97fc892c00 fixing some jshint errors 2016-04-29 09:11:17 +10:00
Gareth Jones
1c3cf620c5 fixed conflicts in test file 2016-04-29 08:08:07 +10:00
Daniel
ecb1543e2f Appender require fix error. Now mailgun is required on the configure function. This is to avoid not having __config object. Tests have been updated to adapt the changes 2016-04-28 05:17:54 -03:00
Danny Arnold
b7bc123741 add not functional tests for the shutdown handler 2016-04-19 22:25:20 +02:00
Gareth Jones
0007623aa9 Merge pull request #364 from demmer/add-stderr-appender
add a stderr appender
2016-04-15 09:26:53 +10:00
Gareth Jones
eaa972b52e uncommented the failing mailgun test (node 0.8 no longer tested against) 2016-04-15 08:44:01 +10:00
cohi
dddc49794b remove broken mailgunAppender test 2016-03-27 16:53:08 +03:00
cohi
3457199ebc adding slack appender 2016-03-27 16:20:23 +03:00
Michael Demmer
5e64fbd90b add a stderr appender
Thus functions almost identically to the consoleAppender except that
instead of logging through `console.log` it uses `process.stderr.write`.
2016-03-24 14:56:28 -07:00
Justin Gordon
a9f52faa46 Add new appender logglyTagged
This appender allows adding tags to any call to the logger.

Documentation added:

Loggly Appender. Sends logging events to Loggly using node-loggly,
optionally setting tags.

This appender will scan the msg from the logging event, and pull out
any argument of the shape `{ tags: [] }` so that it's possible
to add tags in a normal logging call. If an object contains tags and
other members, that object is not used for loggly tagging.

For example:

logger.info({ tags: ['my-tag-1', 'my-tag-2'] }, 'Some message', someObj, ...)

And then this appender will remove the tags param and append it to the config.tags.
2016-03-03 18:44:43 -10:00
Chris Potter
3a6f670be8 Add hipchat and hipchat-test according to mailgun appender. 2016-02-11 17:13:05 -05:00
chewax
df961350bc Feature/MailGunAppender 2016-01-29 17:03:35 -02:00
Hugues Malphettes
3be1c25455 Replace async by native recursions 2016-01-15 11:59:47 +08:00
Guillaume Chauvet
9df030c32c Fix typo 2015-11-27 15:10:52 +01:00
Guillaume Chauvet
e789df9884 Unitary test for sending logs as email attachment instead of body content 2015-11-27 14:29:59 +01:00