@wymp/weenie-logger
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

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.`);

Package Sidebar

Install

npm i @wymp/weenie-logger

Weekly Downloads

0

Version

1.3.0

License

ISC

Unpacked Size

6.82 kB

Total Files

7

Last publish

Collaborators

  • kael.shipman