Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 17, 2015
  1. 0.6.24

    Gareth Jones authored
  2. Merge pull request #292 from hasegawa-jun/fix-reference-error

    make sure to call require()
  3. make sure to call require()

    hasegawa-jun authored
Commits on Apr 16, 2015
  1. made calling logger.log safe if level is not provided as first argume…

    Gareth Jones authored
    …nt (github issue #279)
  2. 0.6.23

    Gareth Jones authored
  3. Merge pull request #277 from hasegawa-jun/shutdown-smtp-appender

    Implemented shutdown function for SMTP appender
  4. Merge pull request #282 from qbrandon/master

    Add appender-level timezone offset config
  5. upgraded semver package version (github issue #291)

    Gareth Jones authored
  6. Merge pull request #288 from alawatthe/nodemailermigration

    The smtp appender now works with the current version of nodemailer - fixes #287
Commits on Apr 11, 2015
  1. @alawatthe
Commits on Mar 20, 2015
  1. @qbrandon
  2. @qbrandon

    Add optional timezoneOffset config for appenders

    qbrandon authored
            appenders: [{type: 'console', timezoneOffset: -540}],
            replaceConsole: true
    The expected value is the equivalent of (new Date).getTimezoneOffset()
    In this example, -540 is the value for JST.
    This allows machines members of world-wide-spread cluster to all report
    log time-stamps using the same timezone (or adapt the timezone to a
    local different from the system)
Commits on Mar 17, 2015
  1. added shutdownTimeout option

    hasegawa-jun authored
Commits on Mar 11, 2015
  1. Merge pull request #278 from cfogelberg/custom-connect-tokens

    Custom connect tokens
Commits on Mar 10, 2015
  1. @cfogelberg
  2. @cfogelberg
  3. @cfogelberg
  4. @cfogelberg
Commits on Mar 8, 2015
  1. @cfogelberg
Commits on Mar 4, 2015
  1. Implemented shutdown function for SMTP appender

    hasegawa-jun authored
Commits on Jan 10, 2015
  1. 0.6.22

    Gareth Jones authored
  2. Merge pull request #240 from vivocha/vivocha-0.6.20

    Vivocha 0.6.20
  3. Merge pull request #260 from DerKnerd/patch-1

  4. Merge pull request #261 from boljen/clusterpid

    added cluster identifier support
  5. Merge pull request #264 from FleetingClouds/master

    Force bundling of appenders/console
  6. Merge pull request #266 from sc2bigjoe/patch-1

    Update smtp.js
  7. Merge pull request #268 from askhogan/master

    Allow for blank tokens due to dynamic data
  8. Merge pull request #269 from Nekle/master

    add options to reload function
Commits on Dec 27, 2014
  1. @Nekle

    add options to reload function

    Nekle authored
    if `cwd` is included in option, reload will not work
Commits on Dec 24, 2014
  1. @askhogan

    added null tests

    askhogan authored
Commits on Dec 21, 2014
  1. @askhogan

    Allow for blank tokens due to dynamic data

    askhogan authored
    Metadata for users such as name, email, etc are not always present for users.  For example, I am running express and I want to log the %x{company}%x{username} so that when I look at my logs I can immediately understand which user this affects.  Or for example, I could log %x{payingOrTial} the type of user.  
    This works well when the user is logged in.  However, my logger encompasses everything.  I log when the server boots up.  I log during the login screen where a user is not yet logged in.  In these circumstances there is no way to retrieve this metadata.
    So for example
    "username": function () {
                var session = require('continuation-local-storage').getNamespace('api.callinize');
                if(!session) session = require('continuation-local-storage').getNamespace('dashboard.callinize');
                var username = session && session.get('user') && session.get('user').username;
                if(!username) return "";
                return " " + username + " ";
    I try to get the metadata.  If I get no metdata I return a blank string.  Unfortunately, in the current implementation, due to the OR operator, even if I have a replacement of "" || matchedString, 
      replaceToken(conversionCharacter, loggingEvent, specifier) || 
    the blank string equals false and puts the token in the log instead of the blank string.  This makes the log lines get long with information that is not relevant.  The better thing to do is simply allow for blank strings.  This lets the user have control over their logs and also allows for more metadata to go in the logs, without having to pick only metadata that is always present.
Commits on Dec 17, 2014
  1. @sc2bigjoe

    Update smtp.js

    sc2bigjoe authored
    added the ability for smtp appender to send message as html instead of plaintext. in your log4js.config file simply include "html": "true", to write out as html, otherwise it will send plaintext
Commits on Dec 9, 2014
  1. @martinhbramwell

    Force bundling of appenders/console

    martinhbramwell authored
     Changes to be committed:
    	modified:   lib/log4js.js
Commits on Dec 1, 2014
  1. @boljen
  2. @boljen
Something went wrong with that request. Please try again.