760 Commits

Author SHA1 Message Date
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
e-cloud
7d9dc55ff2 style: upgrade eslint and format the code
no logic changed.
2016-12-12 21:04:34 +08:00
e-cloud
02d6c017f4 Merge branch 'master'
Conflicts:
	.travis.yml
	lib/appenders/dateFile.js
	lib/appenders/file.js
	lib/appenders/fileSync.js
	lib/appenders/gelf.js
	lib/appenders/logFacesAppender.js
	lib/date_format.js
	lib/debug.js
	lib/layouts.js
	lib/log4js.js
	lib/log4js.json
	lib/logger.js
	lib/streams/BaseRollingFileStream.js
	lib/streams/DateRollingFileStream.js
	lib/streams/RollingFileStream.js
	lib/streams/index.js
	package.json
	test/layouts-test.js
	test/streams/BaseRollingFileStream-test.js
	test/streams/DateRollingFileStream-test.js
	test/streams/rollingFileStream-test.js
2016-12-12 17:42:34 +08:00
Gareth Jones
f9b2eaf579 Merge pull request #420 from thu2004/master
fix for #315 - Include milliseconds in format ISO8601_WITH_TZ_OFFSET
2016-11-11 13:50:22 +11:00
Gareth Jones
478da4a721 Merge pull request #421 from nwoltman/logging-perf
Improve core logging performance
2016-11-11 13:45:13 +11:00
Nathan Woltman
0af3f1607f Improve core logging performance
Allow V8 to optimize functions by not leaking the arguments object.
This results in a performance improvement of about 20%.
2016-11-10 12:32:53 -05:00
Chi Thu Le
9eb0f9dbd0 fix for #315 - Include milliseconds in format ISO8601_WITH_TZ_OFFSET 2016-11-10 10:35:19 +01:00
Gareth Jones
7368cd33dc fix for #419 - calling replace console outside of configure breaks things 2016-11-09 07:50:56 +11:00
Gareth Jones
93af09e864 Merge pull request #401 from sparklton/master
logFaces append via HTTP
2016-11-06 19:48:17 +11: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
sparklton
169627a464 added description for using dependancies 2016-11-06 08:45:19 +02:00
Gareth Jones
e4f196a682 1.0.1 v1.0.1 2016-11-06 15:49:31 +11:00
Gareth Jones
3f93872ecc fixed lint problem 2016-11-06 15:49:06 +11:00
Gareth Jones
eac6295e4c fix for #418 - date formats broken in file appenders 2016-11-06 15:47:45 +11:00
Gareth Jones
c951546f59 updated with node version support 2016-11-04 08:39:50 +11: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
50ed2220c5 Merge pull request #400 from segler-alex/master
added categoryname to logstash appender
2016-11-03 08:25:16 +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
2162b0e8df removed support for node v0.10, bumped version of streamroller 2016-11-02 08:08:01 +11:00
Gareth Jones
81451e416a Merge branch 'logrotate' of https://github.com/jsha/log4js-node into jsha-logrotate 2016-10-24 08:49:37 +11:00
Gareth Jones
a35b9a1b9c not used any more 2016-10-24 08:35:42 +11:00
Gareth Jones
bfdc796321 mentioned changes in 1.0 2016-10-24 08:09:47 +11:00
Gareth Jones
dc831b8a99 updated streamroller, because 0.1.0 was broken 2016-10-23 12:02:16 +11:00
Gareth Jones
301dd50023 premature removal of semver 2016-10-23 11:53:48 +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
Gareth Jones
409ade842a Merge pull request #407 from homchou/master
update module location
2016-09-28 17:06:49 +10:00
chouhom
afd42bd3d9 update moduel location 2016-09-23 15:28:17 +08:00
Jacob Hoffman-Andrews
0b07c1cb7f Merge branch 'master' into logrotate 2016-08-28 15:01:11 -04:00
Jacob Hoffman-Andrews
b7cf2f1e92 Add close-on-SIGHUP behavior for logrotate. 2016-08-28 14:40:47 -04:00
sparklton
658f7c45c7 refactoring 2016-08-12 18:37:38 +03:00
sparklton
bf0aa03b14 refactoring 2016-08-12 18:33:55 +03: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
Alexander Murauer
5314b7795a added categoryname to logstash appender 2016-07-27 15:14:17 +02:00
e-cloud
50ce5030df Merge remote-tracking branch 'refs/remotes/upstream/master'
Conflicts:
	lib/appenders/gelf.js
	lib/connect-logger.js
2016-07-18 15:50:52 +08:00
e-cloud
495d87c521 refactor: fallback some code to support Node.js v4
1. reintroduce `semver` to support code >=4 && <6
2. fallback syntax like rest parameter and default parameter
3. update `sandboxed-module` to fix "strict mode error"
2016-07-18 15:42:05 +08:00
Gareth Jones
6c21e4acd9 0.6.38 v0.6.38 2016-07-17 20:51:18 +10:00
Gareth Jones
defeb2503b Merge pull request #395 from dcolens/dcolens-patch-1
Fixes #393 - catch error when sending UDP packet to GELF server
2016-07-17 17:36:08 +10:00
e-cloud
753ce312e9 test: remove tests under node < 6.0
remove semver related code for tests under node < 6.0
2016-07-16 13:54:18 +08:00
e-cloud
9cc3a88bd7 refactor: more small refactor
1. drop semver related code with no need to detect node version
2. drop license declaration in log4js.js for there is one in the project dir
3. other changes
2016-07-16 13:49:24 +08:00
e-cloud
4ac4ca2ca1 chore: update package.json and eslint config and travis config
1. add optional dependencies used in appenders as many uses may not use them all
2. update script for test integration
3. update eslintrc for those optional dependenceise
4. update travis config as current code is base on ES6 which is only nearly fully supported by Node.js v6
5. drop the old dependenies as being in favor of ES6
2016-07-16 13:30:16 +08:00
e-cloud
9f581f78c1 refactor: streams/*.js (test passed)
As class inheritance inside stream/*.js, standalone refactor don't work.
So streams/*.js are refactored in batch.
One thing worth mentioning is that, the old inherit-style will call the parent
constructor at the end of child constructor for some code initialization. However,
with ES6 class syntax, the call of `super` must be afore every statement with this.
So, some code initializing logic are reordered to suit the ES6 syntax and the tests.
2016-07-16 13:20:01 +08:00
e-cloud
492fd94427 refactor: appenders/slack.js 2016-07-15 21:34:58 +08:00
e-cloud
8274ea0a8d refactor: appenders/smtp.js 2016-07-15 21:34:47 +08:00
e-cloud
ac4b563c0d refactor: appenders/stderr.js 2016-07-15 21:34:37 +08:00
e-cloud
04704791ef refactor: appenders/mailgun.js 2016-07-15 21:34:28 +08:00
e-cloud
85f31cf524 refactor: appenders/multiprocess.js 2016-07-15 21:33:58 +08:00