Noisy Pirate Mutiny

    consolo-adaptor-winston

    0.1.0 • Public • Published

    Consolo Winston Adaptor

    A Consolo adaptor that allows Consolo to use winston.

    Usage

    Install and add to your app as follows:

    npm install --save consolo consolo-adaptor-winston

    Then, in your app.js file:

    import winston from 'winston';
    import { enhanceConsole } from 'consolo';
    import WinstonAdaptor from 'consolo-adaptor-winston';
    
    const adaptor = new WinstonAdaptor(new (winston.Logger)({
      transports: [
        // configure your transports…
      ],
    }));
    
    enhanceConsole(adaptor);
    
    console.log('error', 'some error message');

    License

    This package is part of the Consolo monorepo.

    Install

    npm i consolo-adaptor-winston

    DownloadsWeekly Downloads

    2

    Version

    0.1.0

    License

    ISC

    Unpacked Size

    5.38 kB

    Total Files

    8

    Last publish

    Collaborators

    • prometheas