Gareth Jones
2e035286d1
fix(exit): made exit listeners responsibility of caller
2017-03-20 09:04:36 +11:00
Gareth Jones
833c5a0881
chore(merge): merged in changes from master
2017-03-20 08:21:45 +11:00
hansonw
303f10a70d
fix(fileAppender): Fix up shutdown functions
2017-03-15 00:41:44 -07:00
Gareth Jones
1d50b82a96
refactor: fixed a few more appenders
2017-02-07 08:53:51 +11: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
eac6295e4c
fix for #418 - date formats broken in file appenders
2016-11-06 15:47:45 +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
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
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
7dd3261373
refactor: appenders/dateFile.js
2016-07-15 19:56:07 +08:00
e-cloud
5328e03802
refactor: just format code according to the editor config(tests passed)
2016-07-14 17:36:30 +08:00
Gareth Jones
538c34c8f4
fixed a few more jshint problems (turned a couple off as well)
2016-05-05 16:37:15 +10:00
Alex Kocharin
fc3ae676f1
fix shutdown callbacks not being called
2016-01-29 14:50:51 +00:00
Hugues Malphettes
3be1c25455
Replace async by native recursions
2016-01-15 11:59:47 +08:00
Quentin Brandon
af69eddd1c
Add optional timezoneOffset config for appenders
...
Example:
log4js.configure({
appenders: [{type: 'console', timezoneOffset: -540}],
replaceConsole: true
});
The expected value is the equivalent of (new Date).getTimezoneOffset()
In this example, -540 is the value for JST.
This allows machines members of world-wide-spread cluster to all report
log time-stamps using the same timezone (or adapt the timezone to a
local different from the system)
2015-03-20 11:51:23 +09:00
Dmitry M. Lazutkin
7558a3c367
Closes #238 Updated async library in order to use lib in —use-strict mode
2014-08-28 12:04:02 +04:00
Gareth Jones
614127bb10
added shutdown to datefile
2014-04-22 10:05:37 +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
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
Gareth Jones
65e490cbd2
Fixes for version v0.10 streams, breaks log4js for older versions of node
2013-03-20 09:14:27 +11:00
Gareth Jones
2b889fe776
Working date rolling file appender.
2012-09-25 08:16:59 +10:00