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

eazy-logger

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eazy-logger

Simple cli logger

  • 4.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
286K
decreased by-57.9%
Maintainers
1
Weekly downloads
 
Created

What is eazy-logger?

eazy-logger is a simple and flexible logging utility for Node.js applications. It provides a straightforward API for logging messages with different levels of severity and supports customizable log formats.

What are eazy-logger's main functionalities?

Basic Logging

eazy-logger allows you to log messages with different levels of severity such as info, warn, and error.

const logger = require('eazy-logger').Logger();
logger.info('This is an info message');
logger.warn('This is a warning message');
logger.error('This is an error message');

Custom Log Formats

You can customize the log format by specifying a prefix and other formatting options.

const logger = require('eazy-logger').Logger({
  prefix: '[{level}] {message}',
  useLevelPrefixes: true
});
logger.info('This is an info message');

Log to File

eazy-logger supports logging messages to a file by specifying a writable stream.

const fs = require('fs');
const logger = require('eazy-logger').Logger({
  writer: fs.createWriteStream('logfile.log')
});
logger.info('This message will be logged to a file');

Other packages similar to eazy-logger

Keywords

FAQs

Package last updated on 04 Mar 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