New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@e3o/logger

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@e3o/logger

Global logger service

latest
npmnpm
Version
1.0.1
Version published
Maintainers
0
Created
Source

Logger

How to install and run this module ?

  • Import the module in your app
  • You need to create a logger object using the 'new' operator to be able to use the logger. Constructor takes one argument which is the configuration object.
  • The configuration object MUST contain the following properties :
    • 'APP_NAME'
    • 'LOG_LEVEL'

Methods available

warning: will print a warning message (yellow)

error: print an error message (red)

emerg: print an emerg message (white)

debug: print a debug message (green) Be careful, debug level must be enabled in your config in order to print debug messages

info: print an info message(gray) Each of these methods takes 2 arguments :

  • { String } message you want to print
  • { Object } object you want to print (must not be stringified)

Miscellaneous

Format of the message (don't include the object you'd like to print): timestamp level: message The timestamp will print a date with the format: YYYY-MM-DD HH:mm:ss

FAQs

Package last updated on 28 Jun 2024

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