Gareth Jones
a4d55b3339
fixed up test after merge
2014-07-12 15:11:21 +10:00
Gareth Jones
914ed5356b
Merge pull request #216 from 2ion/gelf-no-full-message
...
GELF appender: don't send full_message field
2014-07-12 15:02:17 +10:00
Jens John
52b4aa1874
fix uninitialized field error
2014-07-11 19:19:19 +09:00
Jens John
2b0a58c2f2
reflect the above changes ; forgot a facility field
2014-07-11 13:02:06 +09:00
Jens John
fcafed9a7e
fix gelfAppender-test.js to reflect the above changes
2014-07-11 12:52:23 +09:00
Jens John
7ff053f104
fix test/gelfAppender-test.js to reflect full_message being gone
2014-07-11 12:38:29 +09:00
Jens John
0f51ab1bb3
GELF appender: set version to 1.1
2014-07-10 14:26:27 +09:00
Jens John
5b2d840472
GELF appender: move facility key into a custom field if present
...
At the same time, don't assign a default value as the field is optional
according to the GELF spec v1.1.
2014-07-10 14:07:38 +09:00
Jens John
ca635fc4b9
GELF appender: don't send full_message field
...
According to the GELF spec v1.1 [1], the full_message field in GELF is
optional. The log4js implemention until now has sent identitical
short_message and full_message fields. Since this does not add any new
information to the log message, I suggest that full_message be dropped
from GELF.
--
[1] http://graylog2.org/gelf#specs
2014-07-10 12:17:35 +09:00
Gareth Jones
f44af56f9e
Added link to example app.
2014-07-03 08:44:24 +10:00
Gareth Jones
a703f2dc12
0.6.15
2014-07-03 08:16:07 +10:00
Gareth Jones
b2edbb1146
Merge pull request #175 from devotis/master
...
Loggly appender should not make use of any layout
2014-06-28 08:22:20 +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
06bab894af
Merge pull request #203 from idalv/master
...
Clusterred appender should consider the categories.
2014-06-28 08:17:16 +10:00
Gareth Jones
101739ebef
Merge pull request #209 from Icehunter/patch-1
...
Update for "write after end" uncaught error.
2014-06-28 08:02:27 +10:00
Ryan Wilson
f8ffccffd5
epic day with a forgotten console
2014-06-20 13:23:57 -07:00
Ryan Wilson
7d50b4aeff
removed check for writeable
...
caused broken unit tests
2014-06-20 13:23:09 -07:00
Ryan Wilson
b12200fabc
Update for "write after end" uncaught error.
2014-06-20 13:16:23 -07:00
Vladimir Mitev
f8b6cc7c39
Revert "Update connect-logger.js to work correctly with express"
...
This reverts commit d18fb466fb
.
2014-05-26 15:56:23 +03:00
idalv
6314e4a344
Merge pull request #1 from idalv/automation
...
Update connect-logger.js to work correctly with express
2014-05-26 15:46:07 +03:00
mishless
d18fb466fb
Update connect-logger.js to work correctly with express
...
When used with express levels are wrong since send() does not call writeHead, but sets responseCode on response.
2014-05-23 13:58:52 +03:00
Vladimir Mitev
e638ff7271
Unit test.
...
Fixed the old unit tests.
Added validation for new functionality.
Signed-off-by: Vladimir Mitev <idalv@users.noreply.github.com>
2014-05-20 14:42:29 +03:00
Vladimir Mitev
2daf29b400
Clusterred appender should consider the categories.
...
It turns out that whenever the clusterred appender is used the log event is passed to all actual appenders.
The actual appender's category is ignored.
Signed-off-by: Vladimir Mitev <idalv@users.noreply.github.com>
2014-05-20 13:45:46 +03:00
Gareth Jones
ca5272aacc
0.6.14
2014-04-22 10:06:04 +10:00
Gareth Jones
614127bb10
added shutdown to datefile
2014-04-22 10:05:37 +10:00
Gareth Jones
a549df44b4
Merge pull request #199 from lulurun/fix_file_appender
...
fix shutdown method: make sure to callback when write completed immediat...
2014-04-22 09:58:03 +10:00
Gareth Jones
5e0982f0b1
Merge pull request #200 from lulurun/datefile_appender_fix
...
file won't get rolled if the process restarted daily
2014-04-22 09:29:15 +10:00
Xiaolu Liu
f5a76d9073
file won't get rolled if the process restarted daily
2014-04-24 00:07:11 +09:00
Xiaolu Liu
29d941f0a6
fix shutdown method: make sure to callback when write completed immediately
2014-04-21 16:27:51 +09:00
Gareth Jones
0c2baa9690
0.6.13
2014-04-09 07:44:23 +10:00
Gareth Jones
9b538ee8ed
fixed timezone flakiness
2014-04-09 07:43:40 +10:00
Gareth Jones
e4d5228f2b
Merge branch 'flush-on-exit'
2014-04-09 07:37:17 +10:00
Gareth Jones
6aacb0da0b
Merge pull request #195 from jengler/flush-on-exit
...
Flush on exit
2014-04-09 07:35:25 +10:00
John Engler
6e3da6f44b
Added error throwing when error loading test file.
...
This will hopefully give us better visibility into our Travis CI
build failures.
2014-04-08 12:40:27 -07:00
John Engler
3b5eb28115
Update dateFile EOL usage to be consistent with appender.
...
From the looks of the Travis CI failure, this could be the issue
causing failures. Not sure as I can't reproduce locally. However,
it is still an inconsistency and worth fixing.
2014-04-08 10:47:18 -07: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
8ca092cdb9
Removed callback to write, as it is not needed.
2014-04-05 16:14:56 -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
Gareth Jones
c852fceaf4
Update README.md
2014-04-01 11:09:01 +11: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
Gareth Jones
492919b940
0.6.12
2014-03-05 13:17:15 +11:00
Gareth Jones
470baa6c09
Merge pull request #187 from jci-fox/addHasLogger
...
adding ability to check if a logger exists
2014-03-05 13:16:51 +11:00
Gareth Jones
cd2ee14bde
0.6.11
2014-03-05 09:25:03 +11:00
Gareth Jones
c09c11b147
Merge branch 'master' of https://github.com/nomiddlename/log4js-node
2014-03-05 09:24:09 +11:00
Gareth Jones
b74a514369
Merge pull request #186 from jci-fox/issue184_dynamicloglevels
...
Adding level checks on dynamic logging
2014-03-05 09:17:16 +11: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
jci-fox
73344ba79f
fixing unit test
...
logger.log requires 2 params, and with the 1st being level and filtering the level, the log call must provide a level that will result in log messages
2014-03-04 09:27:04 -06:00
jci-fox
22c156582f
Adding level checks on dynamic logging
...
using levels.toLevel and this.isLevelEnabled prior to emiting the event will prevent the appenders from being notified if the log level provided is below the loggers level.
2014-03-04 09:08:27 -06:00
Gareth Jones
72bfb5d980
0.6.10
2014-02-11 08:51:21 +11:00