Socket
Socket
Sign inDemoInstall

@apollo/utils.logger

Package Overview
Dependencies
0
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo/utils.logger

Generic logger interface


Version published
Maintainers
4
Weekly downloads
1,726,228
decreased by-25.56%

Weekly downloads

Readme

Source

Logger interface

interface Logger {
  debug(message?: any): void;
  info(message?: any): void;
  warn(message?: any): void;
  error(message?: any): void;
}

This generic interface for loggers supports logging a string at one of four different levels (debug, info, warn, error). It's designed to be compatible with Node's console as well as commonly used logging packages and is tested against a few of them. Below are the logging libraries we test for compatibility against.

bunyan

const logger = bunyan.createLogger();

log4js

const logger = log4js.getLogger();

loglevel

const logger = loglevel.getLogger();

winston

const logger = winston.createLogger();

Keywords

FAQs

Last updated on 17 Apr 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc