screwdriver-logger

    1.1.0 • Public • Published

    screwdriver-logger

    Version Downloads Build Status Open Issues License

    Wrapper around winston for a common logging interface for Screwdriver repos

    Usage

    npm install screwdriver-logger

    This module wraps the winston package and provides a simple uniform interface for handling logs.

    const logger = require('screwdriver-logger');
    
    try {
        // Do something
    
        return logger.info('Server running at %s', server.info.uri);
    } catch (err) {
        logger.error(err.toString());
    
        return process.exit(1);
    }

    Testing

    npm test

    License

    Code licensed under the BSD 3-Clause license. See LICENSE file for terms.

    Install

    npm i screwdriver-logger

    DownloadsWeekly Downloads

    130

    Version

    1.1.0

    License

    BSD-3-Clause

    Unpacked Size

    7.24 kB

    Total Files

    9

    Last publish

    Collaborators

    • screwdriver