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
John Engler
c569919160
Simplied loadAppender logic.
2014-03-11 02:19:00 -07:00
John Engler
28f7c87a0e
Allow adding of appenders as objects
...
Previously, appenders could only be added by specifying the filepath
to the appender. This required the appender's path to be specified
either relative to the log4js installation, relative to a NODE_PATH
token, or absolute. This creates a coupling between the log4js
configurer and the log4js installation location, or a coupling between
the log4js configurer and the global NODE_PATH. This commit removes
the coupling by allowing the loading of appenders to be done relative
to the log4js configurer.
2014-03-11 02:07:58 -07:00
jci-fox
fd05d90c2f
adding ability to check if a logger exists
...
This allows for not accidentally adding a non-configured logger
2014-03-04 09:45:56 -06:00
Rolf Koenders
6ae01b2b84
Update log4js.js
...
Overlooked that there was already a var with '[all]'.
2014-01-23 10:34:56 +01:00
Rolf Koenders
e7c0b0da52
Changed to only the ‚levels’ option as discussed in #87
2014-01-22 20:13:36 +01:00
Rolf Koenders
25fa48ee8d
Set the global level via the configuration object passed to
...
log4js.configure or target `all` in the `levels` object.
2014-01-21 23:39:54 +01:00
Gareth Jones
2a38f460dc
tried adding process.nexttick - didn't help
2013-08-05 07:56:02 +10:00
Gareth Jones
ce8b6b06b9
trying out a shutdown function
2013-08-05 07:21:12 +10:00
Gareth Jones
351a912a86
simplified the reload config code a little, moved the tests into their own file, improved coverage
2013-07-09 09:24:11 +10:00
Gareth Jones
c5fd75dac3
removed check on undefined configState.filename - should not happen, and is covered by the statSync anyway
2013-07-09 08:01:41 +10:00
Gareth Jones
f1c0767ca3
improved coverage
2013-06-17 16:01:03 +10:00
Gareth Jones
94dbd22c71
reduced complex function to smaller ones
2013-06-04 08:37:36 +10:00
Gareth Jones
5d6f00eda4
fixed all lint errors except ones which require refactoring of code
2013-06-04 08:17:36 +10:00
Daniel Bell
ad63b801f7
Check environment variable LOG4JS_CONFIG for configuration file location.
2012-10-16 08:36:26 +11:00
Gareth Jones
a046523804
Moved Logger into separate file, added support for loading appenders outside log4js, removed 'name' from appender requirements
2012-06-01 11:11:07 +10:00
Gareth Jones
0ed1a137d6
moved Logger class out of main module
2012-05-31 08:16:22 +10:00
Gareth Jones
33a92b5dd6
Removed some exports that are no longer needed
2012-05-31 08:07:45 +10:00
Gareth Jones
0901794b35
Moved abspath option checking into file appender, log4js options now passed to appenders
2012-05-31 07:50:01 +10:00
Gareth Jones
754ac2c5ac
changed config loading to be more predictable
2012-05-29 15:50:35 +10:00
Gareth Jones
613a077a61
fixed test-configureNoLevels
2012-05-09 16:31:01 +10:00
Mike Bardzinski
872bc791c7
Fixes the log4js.configure({}) issue which zapped all loggers' levels to TRACE, even if they were previously set to something else
2012-05-02 16:10:20 +01:00
Gareth Jones
53367785b4
got rid of the __preLog4js stuff from the console.log replacement
2012-02-22 08:53:28 +11:00
Shripad K
0c04c6807c
More fixes + Test for "cwd" option
2012-02-08 10:25:14 +05:30
Shripad K
b4ca201a91
feature: allow passing cwd as an option
2012-02-07 12:41:10 +05:30
Gareth Jones
40c5f5ee70
added methods and config to turn off console.log replacement (issue #34 )
2011-11-18 08:44:04 +11:00
Gareth Jones
050fae5230
replaced 'sys' with 'util' (issue #42 )
2011-11-16 08:10:20 +11:00
Danny Brain
23a2758a6d
Lazy load any new style appenders
2011-10-27 16:25:38 +11:00
Danny Brain
3b77a42706
Added a hookio appender, this allows you to run a 'master' log4js instance and 'worker' so only one process writes to file
2011-10-27 12:38:13 +11:00
Daniel Bell
0aca64623e
Merged changes from danbell/master.
2011-10-05 15:03:08 +11:00
Daniel Bell
ff68e46858
Merged changes
2011-10-05 12:27:33 +11:00
Daniel Bell
f9768eb56e
Issue #21 : fixed reloading of config when config has not changed.
2011-10-05 12:22:31 +11:00
Gareth Jones
12e71bda4e
fixed to work with node 0.5.x
2011-09-15 08:13:04 +10:00
Gareth Jones
53a481d4da
Added filtering to appender loader - was choking on .svn files
2011-08-11 16:27:37 +10:00
Gareth Jones
d13b2fb3b4
turned off config file reloading by default
2011-07-27 21:21:43 +10:00
Gareth Jones
163db0e5fd
fixed the behaviour of maxlogsize + 0 backups
2011-07-26 18:40:41 +10:00
Daniel Bell
623bc1859f
Merged Gareth's latest changes in
2011-07-26 11:11:27 +10:00
Gareth Jones
ef9fe3a4b1
All tests pass, moved appenders into separate files, so that extra ones can be added easily
2011-07-26 08:52:40 +10:00
Gareth Jones
545681287f
working fileappender, with tests, broken everything else
2011-07-24 21:58:02 +10:00
Gareth Jones
80474c6881
got log rolling working, need to fix all the tests
2011-07-22 18:25:55 +10:00
Daniel Bell
69e64932b1
Added functionality to reload configuration file periodically.
2011-07-22 14:43:33 +10:00
Gareth Jones
a9a698cf09
fixed log rolling problem
2011-07-21 20:42:14 +10:00
Gareth Jones
925c280c68
check for existence of destroySoon (does not exist in node v0.2.x)
2011-07-21 19:09:22 +10:00