Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apollo/utils.logger

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo/utils.logger

Generic logger interface

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.2M
increased by0.4%
Maintainers
4
Weekly downloads
 
Created
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

Package last updated on 17 Apr 2023

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