Ilya Denisov
2bc9a5483f
feat(configure): configure(...) returning the log4js object.
2018-02-12 21:06:08 +02:00
Gareth Jones
df58b2a466
fix( #652 ): access levels before configure is called
2018-01-19 08:10:35 +11:00
Tomas Mihalcin
d92d885518
fix: deferred logger configuration.
...
logger will be configured either by user or at first call to getLogger
2018-01-15 09:33:54 +01:00
Gareth Jones
f2f9790bec
fix(cluster): potential bug when cluster not available
2017-12-12 08:32:35 +11:00
Gareth Jones
835189696d
fix(cluster): added circular json dep
2017-12-12 08:17:53 +11:00
Gareth Jones
8627f743ef
fix( #614 ): bumped deps of debug, date-format, streamroller
2017-11-17 08:47:45 +11:00
Gareth Jones
f266757fcf
fix(cluster): add flag to turn off the cluster support
2017-09-25 09:47:03 +10:00
Gareth Jones
fc3b0e243c
fix(pm2): was missing logs on instance=0
2017-07-28 08:12:51 +10:00
Gareth Jones
81ddd053e2
feat(pm2): got tests for pm2 working
2017-07-21 08:35:36 +10:00
Gareth Jones
84ab47d6e5
feat(pm2): got pm2 working, needs tests
2017-07-18 22:42:06 +10:00
Gareth Jones
0398bf804b
fix(connect): exporting connect logger
2017-07-10 17:12:52 +10:00
Gareth Jones
58e65543fa
fix(cluster): removed cluster appender, moved cluster handling into core
2017-07-07 08:48:17 +10:00
Gareth Jones
b59f882a7a
docs(layouts): added docs for layouts, and code for custom layouts
2017-06-06 08:29:38 +10:00
Gareth Jones
d27ae8694e
fix(logger): logger levels now shared across instances of same category
2017-04-28 08:29:14 +10:00
Gareth Jones
4333261721
fix(levels): added level configuration, fixed smtp appender
2017-03-09 08:28:41 +11:00
Gareth Jones
d26b1a147b
refactor: fixed a few more tests
2017-02-08 09:10:14 +11:00
Gareth Jones
1d50b82a96
refactor: fixed a few more appenders
2017-02-07 08:53:51 +11:00
Gareth Jones
5283782ba0
refactor(all): basic logging to stdout works again
...
- removed config reloading
- removed console replacement
- added recording appender
- added config validation
- changed config format
2017-02-05 10:05:49 +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
99571a5c9a
added passing shutdown function to addAppender, also added enableLogWrites call to clearAppenders
2016-12-15 08:17:44 +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
7368cd33dc
fix for #419 - calling replace console outside of configure breaks things
2016-11-09 07:50:56 +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
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
87797195f9
refactor: log4js.js
...
remove levels.getLevel function as it have move to the levels.js
2016-07-14 22:09:46 +08:00
e-cloud
5328e03802
refactor: just format code according to the editor config(tests passed)
2016-07-14 17:36:30 +08: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
Gareth Jones
538c34c8f4
fixed a few more jshint problems (turned a couple off as well)
2016-05-05 16:37:15 +10:00
Gareth Jones
97fc892c00
fixing some jshint errors
2016-04-29 09:11:17 +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
Gareth Jones
d31521bac0
Merge pull request #240 from vivocha/vivocha-0.6.20
...
Vivocha 0.6.20
2015-01-10 15:34:31 +11:00
Gareth Jones
0ae72ee424
Merge pull request #264 from FleetingClouds/master
...
Force bundling of appenders/console
2015-01-10 15:26:39 +11:00
Gareth Jones
51ab2963d0
Merge pull request #269 from Nekle/master
...
add options to reload function
2015-01-10 15:21:46 +11:00
Fuxian Ding
1f1442cb7c
add options to reload function
...
if `cwd` is included in option, reload will not work
2014-12-27 12:48:24 +08:00
Martin Bramwell
ec72c03f81
Force bundling of appenders/console
...
Changes to be committed:
modified: lib/log4js.js
2014-12-09 02:59:58 -05:00
Luis Malheiro
39a73586ed
Fixed bug that failed test 'set level on all categories'
2014-09-01 14:37:25 +02:00
Luis Malheiro
6fa998408a
Adds subcategories to the appenders and loggers. Adds property "level" at the file appender to limit the levels that a file appender accepts.
...
Creates a MARK category that always write to the log. That's useful to write things like '---- STARTED ----'.
2014-08-29 16:33:32 +02: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
Stefano Graziato
59a6703549
getBufferedLogger tested.
2014-08-16 14:22:58 +02:00
Stefano Graziato
c9e72d0f00
added getBufferedLogger function.
...
This function should be useful when you need to log during async
parallel operations, without having a mess in logs.
For example when you walk asynchronously a directory and you want logs
to be grouped by file.
It returns the same getLogger() object but messages are stored
internally and sent to appenders only when you call the flush() method
on it.
2014-08-15 13:42:08 +02:00
Gareth Jones
60d2e093ae
Merge branch 'set-global-log-level' of https://github.com/RolfKoenders/log4js-node into RolfKoenders-set-global-log-level
2014-07-12 17:08:39 +10: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
Gareth Jones
e4d5228f2b
Merge branch 'flush-on-exit'
2014-04-09 07:37:17 +10: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
3ec9811b5e
Update log4js module to expose a shutdown function.
...
loadAppender will check for a shutdown function exposed by
a loaded appender. If present, it will be cached so that the
shutdown function can execute it.
The intent here is that a Node application would not invoked
process.exit until after the log4js shutdown callback returns.
2014-04-05 15:12:45 -07:00