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

@highoutput/logger

Package Overview
Dependencies
Maintainers
5
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highoutput/logger

## Class: `Logger` Generate logs that follow a certain format.

  • 0.4.1
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

@highoutput/logger

Class: Logger

Generate logs that follow a certain format.

new Logger(tags)

  • tags (Array<string>)

logger.tag(tag)-

  • tag (string)
  • Returns: (Logger)

logger.error(arg0[,arg1][,arg2]...)

  • arg0 (string|Object|)
  • arg1 (string|Object|)
  • arg2 (string|Object|)

logger.warn(arg0[,arg1][,arg2]...)

  • arg0 (string|Object|)
  • arg1 (string|Object|)
  • arg2 (string|Object|)

logger.info(arg0[,arg1][,arg2]...)

  • arg0 (string|Object|)
  • arg1 (string|Object|)
  • arg2 (string|Object|)

logger.verbose(arg0[,arg1][,arg2]...)

  • arg0 (string|Object|)
  • arg1 (string|Object|)
  • arg2 (string|Object|)

logger.silly(arg0[,arg1][,arg2]...)

  • arg0 (string|Object|)
  • arg1 (string|Object|)
  • arg2 (string|Object|)

Examples

import { Logger } from 'highoutput-utilities';

const logger = new Logger(['api']);

logger.info('Read this!');
logger.error(new Error('A nasty error.'));
logger.silly('My dog will not bite you, probably.');
logger.verbose('You want some log?');
logger.warn('I kill you!');

logger.tag('http').verbose({ host: '127.0.0.1', pathname: '/' });

FAQs

Package last updated on 12 Jun 2021

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