Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 25, 2013
  1. Merge pull request #116 from imkira/master

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

    authored
    Speed up file logging for high rate of logging.
Commits on Feb 13, 2013
  1. @NicolasPelletier

    Speed up file logging for high rate of logging.

    NicolasPelletier authored
    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().
Commits on Feb 11, 2013
  1. Merge pull request #113 from bitcloud/patternLayout_tokens

    authored
    add your own tokens to the patternLayout
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

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

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

    authored
    Added syntax highlighting to JS code in README.md
  2. @ulikoehler
Commits on Dec 2, 2012
  1. Merge pull request #101 from Dignifiedquire/feature-color-pattern

    authored
    [feature] Add patternColoured Layout.
  2. @Dignifiedquire

    [feature] Add color option to pattern layout.

    Dignifiedquire authored
    Based on #90 this implements the possibillity to add the color codes
    according to the log level via %[ and %].
Commits on Nov 9, 2012
Commits on Oct 16, 2012
  1. Version 0.5.4

    authored
  2. Merge pull request #98 from danbell/master

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

    authored
Commits on Sep 24, 2012
Commits on Sep 17, 2012
Commits on Sep 5, 2012
Commits on Sep 4, 2012
Commits on Aug 14, 2012
  1. version 0.5.2

    authored
Commits on Aug 13, 2012
  1. Merge pull request #89 from ixti/master

    authored
    Fix possible memleak with `exit` event handlers
Commits on Aug 9, 2012
  1. @ixti
Something went wrong with that request. Please try again.