Nonlinear Performance Magnification

    log-reporter

    0.1.1 • Public • Published

    log-reporter

    A lightweight client-side logger, useful for production.

    Logging levels

    There are four levels of logs:

    var log = LogReporter;
     
    log.info('This is info log record');
    log.warn('This is warn log record');
    log.error('This is error log record');
    log.send('This is custom log record');

    Usage

    <script src="dist/logReport.js"></script>

    or

     
        let FrontLog = require('log-reporter');
        LogReporter.init({
            url: '',
            sampling: 1,
            env: 'platform',
            ignore: [],
            debug: false
        })
     

    back-end

    Example

    See test/index.html.

    Install

    npm i log-reporter

    DownloadsWeekly Downloads

    5

    Version

    0.1.1

    License

    ISC

    Last publish

    Collaborators

    • lyndon