Skip to content
Commits on Apr 1, 2013
  1. changed supported node versions to 0.6 and 0.8

    Gareth Jones committed Apr 2, 2013
Commits on Feb 25, 2013
  1. Merge pull request #116 from imkira/master

    Pass options from multiprocess appender to inner appender
    Gareth Jones committed Feb 24, 2013
Commits on Feb 20, 2013
  1. @imkira
Commits on Feb 15, 2013
  1. Merge pull request #115 from NicolasPelletier/master

    Speed up file logging for high rate of logging.
    Gareth Jones committed Feb 14, 2013
Commits on Feb 13, 2013
  1. 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().
    Nicolas Pelletier committed Feb 13, 2013
Commits on Feb 11, 2013
  1. Merge pull request #113 from bitcloud/patternLayout_tokens

    add your own tokens to the patternLayout
    Gareth Jones committed Feb 11, 2013
Commits on Feb 8, 2013
  1. @bitcloud
  2. @bitcloud
  3. @bitcloud
  4. @bitcloud
  5. @bitcloud
Commits on Jan 21, 2013
  1. Merge pull request #110 from Dignifiedquire/fix-2

    Move examples into their own directory.
    Gareth Jones committed Jan 20, 2013
Commits on Jan 20, 2013
  1. Merge pull request #109 from Dignifiedquire/fix-1

    Misc code highlighting fixes in readme.md
    Gareth Jones committed Jan 20, 2013
Commits on Jan 19, 2013
  1. @dignifiedquire
  2. @dignifiedquire
Commits on Jan 6, 2013
  1. Merge pull request #105 from ulikoehler/readme-syntax-highlighting

    Added syntax highlighting to JS code in README.md
    Gareth Jones committed Jan 6, 2013
  2. @ulikoehler
Commits on Dec 2, 2012
  1. New version, with colours in pattern layout

    Gareth Jones committed Dec 3, 2012
  2. Merge pull request #101 from Dignifiedquire/feature-color-pattern

    [feature] Add patternColoured Layout.
    Gareth Jones committed Dec 2, 2012
  3. @dignifiedquire

    [feature] Add color option to pattern layout.

    Based on #90 this implements the possibillity to add the color codes
    according to the log level via %[ and %].
    dignifiedquire committed Nov 22, 2012
Commits on Nov 9, 2012
  1. fix for issue #100, multiprocess appender and logLevelFilter don't pl…

    …ay nicely
    Gareth Jones committed Nov 9, 2012
Commits on Oct 16, 2012
  1. Version 0.5.4

    Gareth Jones committed Oct 16, 2012
  2. Merge pull request #98 from danbell/master

    Check environment variable LOG4JS_CONFIG for configuration file location.
    Gareth Jones committed Oct 15, 2012
Commits on Oct 15, 2012
  1. @danbell
  2. @danbell
Commits on Sep 25, 2012
  1. Version 0.5.3

    Gareth Jones committed Sep 26, 2012
Commits on Sep 24, 2012
  1. Working date rolling file appender.

    Gareth Jones committed Sep 25, 2012
  2. Refactored where the exit handler gets added

    Gareth Jones committed Sep 25, 2012
Commits on Sep 17, 2012
  1. Working date rolling file stream

    Gareth Jones committed Sep 18, 2012
Commits on Sep 5, 2012
Commits on Sep 4, 2012
  1. fixed up some dodgy tabbing

    Gareth Jones committed Sep 5, 2012
  2. Removed mentions of pollInterval (issue #93)

    Gareth Jones committed Sep 4, 2012
Commits on Aug 14, 2012
  1. version 0.5.2

    Gareth Jones committed Aug 14, 2012
Commits on Aug 13, 2012
  1. Fixed layout stack trace test

    Gareth Jones committed Aug 14, 2012
  2. Merge pull request #89 from ixti/master

    Fix possible memleak with `exit` event handlers
    Gareth Jones committed Aug 13, 2012
Something went wrong with that request. Please try again.