591 Commits

Author SHA1 Message Date
Guillaume Chauvet
9df030c32c Fix typo 2015-11-27 15:10:52 +01:00
Guillaume Chauvet
fb9fee9c54 implementation for sending logs as email attachment instead of body content 2015-11-27 14:30:21 +01:00
Guillaume Chauvet
e789df9884 Unitary test for sending logs as email attachment instead of body content 2015-11-27 14:29:59 +01:00
Guillaume Chauvet
27b9b6e282 Remove jshint support : node 0.8.0 not works with streams 2015-11-24 14:52:36 +01:00
Guillaume Chauvet
4561d17c8f Correct jshint version 2015-11-23 12:02:33 +01:00
Guillaume Chauvet
d720ea6767 Add jshint as a "lint" alias command 2015-11-23 11:54:53 +01:00
Guillaume Chauvet
e929d6f05f Format source code 2015-11-23 11:32:22 +01:00
Guillaume Chauvet
273aaf68b1 Sends a single email with remaining logs when shutdown is called 2015-11-23 11:07:51 +01:00
Guillaume Chauvet
9855004ef7 vows: show details 2015-11-19 15:56:04 +01:00
Guillaume Chauvet
8261a4ce30 Ignore other generated temporary files 2015-11-19 15:48:49 +01:00
Guillaume Chauvet
5db457beee Format source code 2015-11-19 15:45:17 +01:00
Guillaume Chauvet
a4331b9a96 Remove a useless assertion 2015-11-18 16:09:24 +01:00
Guillaume Chauvet
1a38f44af3 Ignore other generated log files 2015-11-18 16:08:56 +01:00
Guillaume Chauvet
8e040aa9cc Ignore generated log files 2015-11-18 15:39:00 +01:00
Gareth Jones
1c67be5203 manual merge of jumpgh-master (pull request #331) 2015-11-06 08:42:33 +11:00
Gareth Jones
e725bec031 removed unused function 2015-11-06 08:40:05 +11:00
Alexei Tarnakin
5e428cb58e Returned layout support in logstashUDP appender. Tests added 2015-10-30 16:15:18 +03:00
Alexei Tarnakin
ad2499e74b updated tests for logstash udp appender 2015-10-29 16:51:20 +03:00
Gareth Jones
aeb03afee3 Merge pull request #329 from mercury2269/patch-1
Add missing category field
2015-10-27 15:08:06 +11:00
Sergey Maskalik
84611d9963 Add test for category 2015-10-12 14:00:21 -07:00
Sergey Maskalik
3ea6422685 Add missing category field
Current logstashUDP appender doesn't send category of the loggingEvent which is very useful when filtering for logs.
2015-10-12 12:56:14 -07:00
Alexei Tarnakin
a961f7ea07 extra json data fields for logstash 2015-10-09 16:57:58 +03:00
Gareth Jones
515291b1db Merge branch 'master' of https://github.com/nomiddlename/log4js-node 2015-09-24 09:42:42 +10:00
Gareth Jones
7f3602769b added the apache licence text 2015-09-24 09:42:24 +10:00
Gareth Jones
bea445b7ec Added npm badge. 2015-09-24 09:29:54 +10:00
Gareth Jones
70752c5c4f 0.6.27 v0.6.27 2015-09-22 08:47:58 +10:00
Gareth Jones
1d463d81e1 Merge pull request #306 from gabe0x02/master
hook to add cusotm layouts
2015-09-22 08:39:12 +10:00
Gareth Jones
b37c171e5c Merge pull request #305 from pmalouin/patch-1
clustered appender - Unwrap the serialized errors
2015-09-22 08:28:16 +10:00
Gareth Jones
1ea98b3836 Merge pull request #312 from ezbin/feature-smtp-transport-plugins
Feature - Add support for nodemailer transport plugins
2015-09-22 08:26:08 +10:00
Gareth Jones
ba3c9c398e updated travis config to use new containers 2015-09-22 08:13:39 +10:00
Edward Zborowski
2642c89070 Added a extra sandbox requires to get tests passing 2015-07-08 22:43:51 -04:00
Edward Zborowski
5f3a0f293a Use a nodemailer transport plugin if transport option is provided 2015-07-08 21:41:08 -04:00
Edward Zborowski
3b6c631b83 Created tests for new smtp transport option 2015-07-08 21:20:29 -04:00
Gabriel Littman
bba78d9b29 hook to add cusotm layouts 2015-06-16 14:22:07 -07:00
Patrick Malouin
2cdbd60c7e Add test for the logging event deserialization 2015-06-11 16:20:54 -04:00
Gareth Jones
fc4cdea50d 0.6.26 v0.6.26 2015-06-11 07:13:56 +10:00
Gareth Jones
25cf884f97 Merge branch 'MaxXx1313-master' 2015-06-11 07:11:30 +10:00
Gareth Jones
fe7a863bde Merge branch 'master' of https://github.com/MaxXx1313/log4js-node into MaxXx1313-master 2015-06-11 07:10:08 +10:00
Gareth Jones
35ad3b696a Merge pull request #301 from CartoDB/master
Use x-forwarded-for if available for :remote-addr
2015-06-11 07:03:23 +10:00
Patrick Malouin
7c22fb5752 clustered appender - Unwrap the serialized errors
When logging an `Error` object using the clustered appender, the logged event is a JSON representation of the error, ex:
[2015-06-09 11:13:48.257] [ERROR] middleware.Security - { stack: 'Error: User is not authorized\n at Object.exec (D:\\Borealis\\demoux\\IMS\\server\\IMS\\middleware\\SecurityCheck\\Instance.js:41:14)\n [...] at applyArgs (D:\\Borealis\\demoux\\IMS\\server\\node_modules\\flow\\flow.js:9:15)\n at Function.flowState (D:\\Borealis\\demoux\\IMS\\server\\node_modules\\flow\\flow.js:39:6)\n at applyArgs (D:\\Borealis\\demoux\\IMS\\server\\node_modules\\flow\\flow.js:9:15)\n at Function.thisFlow.exec (D:\\Borealis\\demoux\\IMS\\server\\node_modules\\flow\\flow.js:94:4)\n at applyArgs (D:\\Borealis\\demoux\\IMS\\server\\node_modules\\flow\\flow.js:9:15)\n at thisFlow (D:\\Borealis\\demoux\\IMS\\server\\node_modules\\flow\\flow.js:15:4)\n at Object.exec (D:\\Borealis\\demoux\\IMS\\server\\node_modules\\flow\\flow.js:103:42)' } 

The error should be formatted identically as with other appenders (e.g. only printing the stack).

This changes adds a check for a `stack` attribute on the serialized loggingEvent and unwraps the errors while deserializing it. Result is:
[2015-06-09 11:13:48.257] [ERROR] middleware.Security - Error: User is not authorized
 at Object.exec (D:\Borealis\demoux\IMS\server\IMS\middleware\SecurityCheck\Instance.js:41:14)
 at applyArgs (D:\Borealis\demoux\IMS\server\node_modules\flow\flow.js:9:15)
 at Function.flowState (D:\Borealis\demoux\IMS\server\node_modules\flow\flow.js:39:6)
 at applyArgs (D:\Borealis\demoux\IMS\server\node_modules\flow\flow.js:9:15)
 at Function.thisFlow.exec (D:\Borealis\demoux\IMS\server\node_modules\flow\flow.js:94:4)
 at applyArgs (D:\Borealis\demoux\IMS\server\node_modules\flow\flow.js:9:15)
 at thisFlow (D:\Borealis\demoux\IMS\server\node_modules\flow\flow.js:15:4)
 at Object.exec (D:\Borealis\demoux\IMS\server\node_modules\flow\flow.js:103:42)
2015-06-10 10:32:36 -04:00
Francisco Dans
3bf2bade32 x-forwarded-for 2015-06-01 15:30:46 +02:00
Gareth Jones
0c74fbbf7d added node 0.12 to travis config 2015-05-13 08:06:16 +10:00
Gareth Jones
8dff114b49 0.6.25 v0.6.25 2015-05-13 08:03:35 +10:00
Gareth Jones
c76fe098ae Merge pull request #294 from Skiggz/gelf-fix
Remove GELF flag when capturing custom fields
2015-05-13 07:54:33 +10:00
MaxXx1313
799af3be5d add protocol and hostname to output format for express 2015-04-29 17:10:05 +03:00
Skylar Lowery
1454ae5350 Use isUndefined test method vs equals undefined
*doh
2015-04-27 11:01:20 -06:00
Skylar Lowery
3cf1d697e8 Remove GELF flag when capturing custom fields
* Logstash (which supports GELF) drops messages with this key
* There's no particular need to keep this key
2015-04-24 11:14:17 -06:00
Gareth Jones
9fe32d06e3 0.6.24 v0.6.24 2015-04-17 11:36:22 +10:00
Gareth Jones
b8e1d03928 Merge pull request #292 from hasegawa-jun/fix-reference-error
make sure to call require()
2015-04-17 11:35:28 +10:00
hasegawa-jun
ebfcf94db3 make sure to call require() 2015-04-17 10:08:00 +09:00