You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Edward Peterson 9d8f1c09f9 Update 'package.json' 2 years ago
.gitignore Initial commit 2 years ago
README.md Update 'README.md' 2 years ago
context.js Initial commit 2 years ago
index.js Initial commit 2 years ago
logger.js Initial commit 2 years ago
package-lock.json Initial commit 2 years ago
package.json Update 'package.json' 2 years ago

README.md

#CLEW-logger

clew.create({
    prod: process.env.NODE_ENV === 'production',
    prodHost: 'http://my-loki-endpoint.domain.com:port',
    appTag: 'myAppTag
});
const log = clew.log;
// all other imports for logging can use 
// const {log} = require('clew-logger');

app.use(clew.context.attachContext('namespaceName'));


//log is a standard winston logger
log.info({
    message: 'This is a test'
})```