Gareth Jones
d31521bac0
Merge pull request #240 from vivocha/vivocha-0.6.20
...
Vivocha 0.6.20
10 years ago
Gareth Jones
0ae72ee424
Merge pull request #264 from FleetingClouds/master
...
Force bundling of appenders/console
10 years ago
Gareth Jones
51ab2963d0
Merge pull request #269 from Nekle/master
...
add options to reload function
10 years ago
Fuxian Ding
1f1442cb7c
add options to reload function
...
if `cwd` is included in option, reload will not work
10 years ago
Martin Bramwell
ec72c03f81
Force bundling of appenders/console
...
Changes to be committed:
modified: lib/log4js.js
10 years ago
Luis Malheiro
39a73586ed
Fixed bug that failed test 'set level on all categories'
10 years ago
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 ----'.
10 years ago
Dmitry M. Lazutkin
7558a3c367
Closes #238 Updated async library in order to use lib in —use-strict mode
10 years ago
Stefano Graziato
59a6703549
getBufferedLogger tested.
10 years ago
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.
10 years ago
Gareth Jones
60d2e093ae
Merge branch 'set-global-log-level' of https://github.com/RolfKoenders/log4js-node into RolfKoenders-set-global-log-level
10 years ago
Gareth Jones
99e7c0981d
Merge pull request #189 from jengler/add-support-for-prerequired-appender-styles
...
Add support for prerequired appender styles
10 years ago
Gareth Jones
e4d5228f2b
Merge branch 'flush-on-exit'
11 years ago
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.
11 years ago
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.
11 years ago
John Engler
c569919160
Simplied loadAppender logic.
11 years ago
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.
11 years ago
jci-fox
fd05d90c2f
adding ability to check if a logger exists
...
This allows for not accidentally adding a non-configured logger
11 years ago
Rolf Koenders
6ae01b2b84
Update log4js.js
...
Overlooked that there was already a var with '[all]'.
11 years ago
Rolf Koenders
e7c0b0da52
Changed to only the ‚levels’ option as discussed in #87
11 years ago
Rolf Koenders
25fa48ee8d
Set the global level via the configuration object passed to
...
log4js.configure or target `all` in the `levels` object.
11 years ago
Gareth Jones
2a38f460dc
tried adding process.nexttick - didn't help
11 years ago
Gareth Jones
ce8b6b06b9
trying out a shutdown function
11 years ago
Gareth Jones
351a912a86
simplified the reload config code a little, moved the tests into their own file, improved coverage
11 years ago
Gareth Jones
c5fd75dac3
removed check on undefined configState.filename - should not happen, and is covered by the statSync anyway
11 years ago
Gareth Jones
f1c0767ca3
improved coverage
11 years ago
Gareth Jones
94dbd22c71
reduced complex function to smaller ones
11 years ago
Gareth Jones
5d6f00eda4
fixed all lint errors except ones which require refactoring of code
11 years ago
Daniel Bell
ad63b801f7
Check environment variable LOG4JS_CONFIG for configuration file location.
12 years ago
Gareth Jones
a046523804
Moved Logger into separate file, added support for loading appenders outside log4js, removed 'name' from appender requirements
12 years ago
Gareth Jones
0ed1a137d6
moved Logger class out of main module
12 years ago
Gareth Jones
33a92b5dd6
Removed some exports that are no longer needed
12 years ago
Gareth Jones
0901794b35
Moved abspath option checking into file appender, log4js options now passed to appenders
12 years ago
Gareth Jones
754ac2c5ac
changed config loading to be more predictable
12 years ago
Gareth Jones
613a077a61
fixed test-configureNoLevels
13 years ago
Mike Bardzinski
872bc791c7
Fixes the log4js.configure({}) issue which zapped all loggers' levels to TRACE, even if they were previously set to something else
13 years ago
Gareth Jones
53367785b4
got rid of the __preLog4js stuff from the console.log replacement
13 years ago
Shripad K
0c04c6807c
More fixes + Test for "cwd" option
13 years ago
Shripad K
b4ca201a91
feature: allow passing cwd as an option
13 years ago
Gareth Jones
40c5f5ee70
added methods and config to turn off console.log replacement (issue #34 )
13 years ago
Gareth Jones
050fae5230
replaced 'sys' with 'util' (issue #42 )
13 years ago
Danny Brain
23a2758a6d
Lazy load any new style appenders
13 years ago
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
13 years ago
Daniel Bell
0aca64623e
Merged changes from danbell/master.
13 years ago
Daniel Bell
ff68e46858
Merged changes
13 years ago
Daniel Bell
f9768eb56e
Issue #21 : fixed reloading of config when config has not changed.
13 years ago
Gareth Jones
12e71bda4e
fixed to work with node 0.5.x
13 years ago
Gareth Jones
53a481d4da
Added filtering to appender loader - was choking on .svn files
13 years ago
Gareth Jones
d13b2fb3b4
turned off config file reloading by default
13 years ago
Gareth Jones
163db0e5fd
fixed the behaviour of maxlogsize + 0 backups
13 years ago