Gareth Jones
fdc9d253c9
0.6.5
2013-05-16 16:57:25 +10:00
Gareth Jones
18e21ca473
Merge branch 'master' of https://github.com/nomiddlename/log4js-node
2013-05-16 16:55:47 +10:00
Gareth Jones
ab8c7ed89d
Merge pull request #136 from issacg/dontalwaysrename-bug
...
Dontalwaysrename bug
2013-05-15 23:52:57 -07:00
Gareth Jones
aa4f7c071b
Merge pull request #135 from jmav/master
...
auto level detection from @jmav
2013-05-15 23:52:27 -07:00
Issac Goldstand
dc632f4705
Fixes bug introduced in github issue #132 where file rolling needs to be handled differently for alwaysIncludePattern streams
2013-05-11 23:01:28 +03:00
Jure Mav
ac6284add1
Added automatic level detection to connect-logger, depends on http status response.
...
Update of connect logger example code, compatible with express 3.x
2013-05-11 16:17:23 +02:00
Issac Goldstand
2da01cc611
Fixes bug introduced in github issue #132 where renaming a file to itself can cause an unhandled error
2013-05-09 13:09:59 +03:00
Gareth Jones
ad8229145e
Merge pull request #133 from issacg/baseFileRollingStream-bug
...
Fixes bug in detecting empty options (see issue #132 on github)
2013-05-08 02:24:02 -07:00
Issac Goldstand
8c12c948d9
Fixes bug in detecting empty options (see issue #132 on github)
2013-05-08 12:05:32 +03:00
Gareth Jones
af6ae7af98
new version for alwaysIncludePattern
2013-05-05 14:01:40 +10:00
Gareth Jones
936ad4da8e
fixed tests broken by alwaysIncludePattern
2013-05-05 13:44:01 +10:00
Gareth Jones
097ae3d7f1
Merge branch 'alwaysIncludePattern' of https://github.com/issacg/log4js-node into isaacg-alwaysIncludePattern
2013-05-04 16:10:02 +10:00
Issac Goldstand
04de4ed8d3
fix OS-specific endline mucking test results (:-O not everyone uses linux?!?!)
2013-05-03 11:14:28 +03:00
Issac Goldstand
29b02921b6
add option alwaysIncludePattern to dateTime appender to always use the filename with the pattern included when logging
2013-05-02 14:56:33 +03:00
Gareth Jones
48ed5d1222
Removed the warning about node 0.10
2013-04-11 22:34:49 +10:00
Gareth Jones
7844b0d2e4
0.6.3
2013-04-11 22:29:13 +10:00
Gareth Jones
8b49ba9f3d
added node 0.8 to travis config and package.json
2013-04-11 21:49:08 +10:00
Gareth Jones
ed7462885f
backporting new streams to node 0.8 for issue #129
2013-04-11 21:45:16 +10:00
Gareth Jones
36c5175a55
0.6.2
2013-04-02 12:02:47 +11:00
Gareth Jones
22160f90b3
fixed the multiprocess tests
2013-04-02 11:59:45 +11:00
Gareth Jones
73437ecb40
Merge branch 'master' of https://github.com/dsn/log4js-node into dsn-master
2013-04-02 11:34:25 +11:00
Gareth Jones
107e33c0d1
merged in change from @vojtajina for pull request #128
2013-04-02 10:18:25 +11:00
Gareth Jones
6352632fb2
fix version of node supported
2013-04-02 10:02:48 +11:00
Gareth Jones
0544342e9f
Merge pull request #128 from Dignifiedquire/master-engine
...
Fix node engine in package.json
2013-04-01 15:42:41 -07:00
Friedel Ziegelmayer
1d1153d32f
Fix node engine in package.json
2013-04-01 23:00:26 +02:00
Gary Steven
e58cf201ca
Updated for Node 0.10.x
...
net.createServer no longer emits 'connect' event
2013-03-30 03:23:58 -07:00
Gareth Jones
83271e47fc
Merge pull request #125 from jimschubert/master
...
Allow for somewhat standard debugging calls
2013-03-24 19:35:24 -07:00
Jim Schubert
f3271a3997
Add standard debug conditional function
...
: master
2013-03-23 18:50:13 -07:00
Gareth Jones
4b7cf589a2
Fixing the wiki links (issue #124 )
2013-03-20 19:47:32 +11:00
Gareth Jones
c8f401c47d
fixed travis node version format
2013-03-20 14:58:56 +11:00
Gareth Jones
ecbf41bc83
updated readme with node 0.10 info
2013-03-20 09:16:42 +11:00
Gareth Jones
65e490cbd2
Fixes for version v0.10 streams, breaks log4js for older versions of node
2013-03-20 09:14:27 +11:00
Gareth Jones
f272e3fd0a
Merge branch 'master' into util.format
2013-02-25 16:43:03 +11:00
Gareth Jones
5e242c9dc9
bumped version
2013-02-25 16:33:48 +11:00
Gareth Jones
50eefcc701
Merge pull request #116 from imkira/master
...
Pass options from multiprocess appender to inner appender
2013-02-24 21:30:42 -08:00
Mário Freitas
8e53c6213e
fix: pass options from multiprocess appender to inner appender
2013-02-21 00:06:59 +09:00
Gareth Jones
a15a628311
Merge pull request #115 from NicolasPelletier/master
...
Speed up file logging for high rate of logging.
2013-02-14 16:32:03 -08:00
Nicolas Pelletier
b75e3660f4
Speed up file logging for high rate of logging.
...
During an evaluation of multiple loggers, I saw a slow down when trying to
quickly log more than 100,000 messages to a file:
```javascript
counter = 150000;
while (counter) {
logger.info('Message[' + counter + ']');
counter -= 1;
}
```
My detailed test can be found here:
- https://gist.github.com/NicolasPelletier/4773843
The test demonstrate that writing 150,000 lines straight in a FileStream
takes about 22 seconds until the file content stabilizes. When calling
logger.debug() 150,000 times, the file stabilizes to its final content
after 229s ( almost 4 minutes ! ).
After investigation, it turns out that the problem is using an Array() to
accumulate the data. Pushing the data in the Array with Array.push() is
quick, but the code flushing the buffer uses Array.shift(), which forces
re-indexing of all 149,999 elements remaining in the Array. This is
exponentially slower as the buffer grows.
The solution is to use something else than an Array to accumulate the
messages. The fix was made using a package called Dequeue
( https://github.com/lleo/node-dequeue ). By replacing the Array with
a Dequeue object, it brought the logging of 150,000 messages back down to
31s. Seven times faster than the previous 229s.
There is a caveat that each log event is slightly longer due to the need
to create an object to put in the double-ended queue inside the Dequeue
object. According to a quick test, it takes about 4% more time per call
to logger.debug().
2013-02-13 09:35:02 -05:00
Gareth Jones
22da6226e5
Merge pull request #113 from bitcloud/patternLayout_tokens
...
add your own tokens to the patternLayout
2013-02-11 13:45:18 -08:00
Gareth Jones
c9a890b37b
added some test output files to gitignore
2013-02-12 07:23:18 +11:00
Jan Schmidle
a3bdac8e14
updated require in example to match other examles
2013-02-08 16:22:29 +01:00
Jan Schmidle
af428c5669
added example on pattern tokens usage
2013-02-08 16:18:27 +01:00
Jan Schmidle
5c75ba9468
fixed small issue that could occur with wrong evaluated parameters
2013-02-08 16:17:24 +01:00
Jan Schmidle
bec0d05847
added some documentation to the function header
2013-02-08 16:15:51 +01:00
Jan Schmidle
e4bf405f20
add your own tokens to the patternLayout
2013-02-08 14:54:18 +01:00
Gareth Jones
95568f352b
Merge pull request #110 from Dignifiedquire/fix-2
...
Move examples into their own directory.
2013-01-20 16:15:53 -08:00
Gareth Jones
6da6f3c90e
Merge pull request #109 from Dignifiedquire/fix-1
...
Misc code highlighting fixes in readme.md
2013-01-20 14:16:04 -08:00
Friedel Ziegelmayer
7f57d14e70
Move examples into their own directory.
2013-01-19 22:14:14 +01:00
Friedel Ziegelmayer
f478793da3
Misc code highlighting fixes in readme.md
2013-01-19 22:09:31 +01:00
Gareth Jones
0dbc4921a3
Changed layouts to use util.format instead of my own implementation
2013-01-11 15:35:00 +11:00