Skip to content

compoundjs/co-logger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

co-logger

Winston based logger for compound.js

Replace default CompoundJS logger with Winston

Installation

Step 1. install using npm:

npm install co-logger --save

Step 2. add co-logger to config/autoload.js, for example:

module.exports = function (compound) {
    return [
        'ejs-ext',
        'jugglingdb',
        'seedjs',
        'co-logger'
    ].map(require);
};

Usages

You can use co-logger with old way:

compound.logger.write("My log message")

Or:

log = require("co-logger");
log.debug("My log message");
log.error("My log message with error", err);

Or:

compound.logger.warn("My log message");

About

Winston based logger for CompoundJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published