@wymp/weenie-logger
v1.3.0
Published
This is the logger package for Weenie, an unopinionated Typescript microservice framework.
Downloads
5
Maintainers
Readme
Logger
This package is meant to be used with Weenie. If you are not using Weenie but
are interested in this logger, try @wymp/simple-logger-console
,
as all this package does is wrap that package in a weenie-compatible function.
Example
import { Weenie } from "@wymp/weenie-base";
import { logger } from "@wymp/weenie-logger";
const config = {
logger: {
logLevel: 'error',
}
}
const deps = Weenie({ config })
.and(logger);
deps.log.debug(`This won't output anything because it's at debug level.`);
deps.log.error(`This will.`);