New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@typeix/logger

Package Overview
Dependencies
Maintainers
0
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typeix/logger

Pino Logger wrapper for typescript

  • 8.9.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Typeix Logo

A progressive Node.js tools for building efficient and scalable applications.

@typeix/logger

Build Status Coverage Status npm

Logger

Resty comes with a built-in Pino logger wrapper which is used during application bootstrapping such as displaying scanned routing info (i.e., system logging, bootstrap errors).

You can fully control the behavior of the logging system:

  • disable logging entirely
  • specify the log level of detail (e.g., display errors, warnings, debug information, etc.)
  • customize the default logger by extending it
  • create your own custom implementation, to log your own application-level events and messages.

For more advanced logging functionality, you can make use of any Node.js logging package, such as Winston, to implement a completely custom, production grade logging system.

Usage

interface LoggerOptions {
  options: pino.LoggerOptions;
  stream?: pino.DestinationStream;
}
const options: LoggerOptions = {
    options: {
        level: "error"
    }
};
const logger = new Logger(options);
logger.info({id: 1, whatever: 2}, "Some nice custom message");

Keywords

FAQs

Package last updated on 10 Jan 2025

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