GitXplorerGitXplorer
k

log4js-loopback

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
842fa7af9a2340877ebdd9df75fc5de854d406fe

update example yml to use correct name

kkeis committed 11 years ago
Unverified
3fd5a2dfafb20110a6ac817b6c95d4b4a5738123

package my old gist for npm

kkeis committed 11 years ago

README

The README file for this repository.

log4js-loopback

This appender lets you use the usual set of log4js goodies like filtering on category or log level in combination with multiprocessing logging.

Configure multiprocess to use loopback as it's append and get logging!

    appenders:
        - { type: "multiprocess",
            mode: "master",
            appender: { type: "log4js-loopback" } }
        - { type: 'console' }
        - { type: 'file'
            filename: "logs/access.log",
            category: "access" }
        - { type: 'logLevelFilter',
            level: "WARN",
            appender: { type: 'file',
                        filename: "logs/error.log" } }

log4js-loopback does this by emitting each log event recieved through the full log4js machinery but taking care not to loop each event more than once.