0.1.2 • Published 6 years ago

@phantomchain/core-logger-winston v0.1.2

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

PHANTOM Core)

PHANTOM Core - Winston Logger

Installation

yarn add @phantomchain/core-logger-winston

Configuration

module.exports = {
  transports: {
    console: {
      constructor: 'Console',
      options: {
        level: process.env.PHANTOM_LOG_LEVEL || 'debug',
        format: require('./formatter'),
      },
    },
    dailyRotate: {
      package: 'winston-daily-rotate-file',
      constructor: 'DailyRotateFile',
      options: {
        level: process.env.PHANTOM_LOG_LEVEL || 'debug',
        filename:
          process.env.PHANTOM_LOG_FILE ||
          `${process.env.PHANTOM_PATH_DATA}/logs/core/${
            process.env.PHANTOM_NETWORK_NAME
          }/%DATE%.log`,
        datePattern: 'YYYY-MM-DD',
        zippedArchive: true,
        maxSize: '100m',
        maxFiles: '10',
      },
    },
  },
}

Security

If you discover a security vulnerability within this package, please send an e-mail to security@phantom.org. All security vulnerabilities will be promptly addressed.

Credits

License

MIT © ArkEcosystem