37 Commits

Author SHA1 Message Date
Lam Wei Li
2523e17a15
chore(deps-dev): bump prettier from 1.19.1 to 2.7.1 2022-09-28 17:22:38 +08:00
Lam Wei Li
4bc5589a28
style: ran prettier 2022-07-26 03:07:06 +08:00
Zachary Haber
cad9555948
style: run prettier:fix 2022-06-23 01:00:07 +08:00
Lam Wei Li
4f1111ee40
chore(lint): added specific eslint rule(s) to disable for clarity 2022-03-12 01:25:39 +08:00
Lam Wei Li
eb9c923b04
Misc formatting 2022-02-02 03:06:22 +08:00
Lam Wei Li
4c4bbe84e8
chore(refactor): using writer.writable instead of alive for checking 2022-01-19 21:55:06 +08:00
Lam Wei Li
e86a809544
Merge pull request #1097 from 4eb0da/datefile-error-handling
dateFile error handling fix
2022-01-19 21:26:03 +08:00
peteriman
8042252861
Changed default file modes from 0o644 to 0o600 for better security 2022-01-16 22:09:32 +08:00
Aleksandr Nefedov
a3e6363cd9 dateFile error handling fix 2 2021-10-04 18:05:19 +03:00
Aleksandr Nefedov
9433b12eac dateFile error handling fix 2021-10-04 14:55:48 +03:00
Gareth Jones
fa5b566884 chore: tidied up the language in pause test, fixed a date file mock 2019-11-19 08:35:28 +11:00
shayan tabatabaee
3ff4d8b297 fix: Add pause event to dateFile logger 2019-11-15 11:56:19 +03:30
Gareth Jones
66fe30e9f4 chore: oh shit I changed the eslint rules 2019-08-01 16:57:32 +10:00
Gareth Jones
f5c73efc44 fix(#887): map maxLogSize to maxSize 2019-05-29 08:32:38 +10:00
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