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

heimdalljs-logger

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heimdalljs-logger

Structured logging via heimdalljs

  • 0.1.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
342K
increased by6.67%
Maintainers
5
Weekly downloads
 
Created

What is heimdalljs-logger?

heimdalljs-logger is a logging utility designed to work with the heimdalljs performance monitoring library. It provides a simple and efficient way to log messages with different levels of severity, making it easier to track and debug performance issues in your application.

What are heimdalljs-logger's main functionalities?

Basic Logging

Allows you to log messages with different levels of severity (info, warn, error).

const logger = require('heimdalljs-logger')('my-app');
logger.info('This is an info message');
logger.warn('This is a warning message');
logger.error('This is an error message');

Custom Log Levels

Enables you to define custom log levels for more granular control over logging.

const logger = require('heimdalljs-logger')('my-app');
logger.addLevel('debug', 1000);
logger.debug('This is a debug message');

Contextual Logging

Allows you to add contextual information to your log messages, making it easier to understand the context in which a log message was generated.

const logger = require('heimdalljs-logger')('my-app');
logger.info('Starting process', { processId: 12345 });

Other packages similar to heimdalljs-logger

Keywords

FAQs

Package last updated on 17 Aug 2018

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