How to use @lskjs/log - 2 common examples

To help you get started, we’ve selected a few @lskjs/log examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lskjs / lskjs / packages / uapp / src / Uapp.js View on Github external
createLogger(params) {
    const level = __DEV__ ? ( // eslint-disable-line no-nested-ternary
      __SERVER__ ? 'warn' : 'trace'
    ) : 'error';

    return logger.createLogger({
      name: this.name || 'app',
      src: __DEV__,
      level,
      ...get(this, 'config.log', {}),
      ...params,
    });
  }
github lskjs / lskjs / packages / module / src / Module.js View on Github external
createLogger(params) {
    return logger.createLogger({
      name: this.name || 'app',
      src: __DEV__,
      level: 'trace',
      ...get(this, 'config.log', {}),
      ...params,
    });
  }

@lskjs/log

Yet another logger whitch combines the best features of debug, bunyan, logfmt/logrus, morgan/winston

MIT
Latest version published 1 year ago

Package Health Score

49 / 100
Full package analysis

Popular @lskjs/log functions