New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@c8/logger

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@c8/logger

Easy to use (config-based) wrapper around winston logger

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

C8-Logger

Easy to use (config-based) wrapper around winston logger

Available Transports

  • Console

  • File

  • SysLog (currently on hold)

Available log levels

  • 7 -> debug
  • 6 -> info
  • 5 -> notice
  • 4 -> warning
  • 3 -> error
  • 2 -> crit
  • 1 -> alert
  • 0 -> emerg

Usage


// import logger component
var logger = require('logger')

// Define config options
var config = {
  transports: {
    console: {
      level: ['info', 'debug'],
      options: {}
    },
    file: {
      level: ['error', 'crit', 'alert', 'emerg'],
      options: {}
    }
  }
}

// Initialize Logger config
logger.init(config)

// Use logger
logger.debug('This is the debug message')

Console logger options: console.options File logger options: file.options

Tests

Run the following commands:

  • npm run test for unit tests
  • npm run standard for StandardJS compiling
  • npm run coverage for code coverage

Licence

MIT Licence © Copyright 2016 C8 MANAGEMENT LIMITED

Keywords

FAQs

Package last updated on 18 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc