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

@ui5/logger

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ui5/logger

UI5 Tooling - Internal Logger

  • 3.0.1-rc.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created

What is @ui5/logger?

@ui5/logger is a logging library designed for use with the UI5 framework. It provides a simple and flexible way to log messages at different levels (e.g., error, warn, info, verbose, silly) and supports custom loggers and transports.

What are @ui5/logger's main functionalities?

Basic Logging

This feature allows you to create a logger instance and log messages at different levels such as info and error.

const { getLogger } = require('@ui5/logger');
const log = getLogger('myLogger');
log.info('This is an info message');
log.error('This is an error message');

Custom Log Levels

This feature allows you to define custom log levels and use them in your application.

const { getLogger, createLogger } = require('@ui5/logger');
const customLogger = createLogger({
  transports: [
    new (require('@ui5/logger').transports.Console)({
      level: 'custom'
    })
  ]
});
const log = getLogger('customLogger');
log.custom('This is a custom log level message');

Custom Transports

This feature allows you to create custom transports for logging, such as logging to the console with a specific format.

const { getLogger, createLogger, transports } = require('@ui5/logger');
const customTransport = new transports.Console({
  level: 'info',
  format: require('@ui5/logger').formats.simple()
});
const customLogger = createLogger({
  transports: [customTransport]
});
const log = getLogger('customLogger');
log.info('This is an info message with a custom transport');

Other packages similar to @ui5/logger

Keywords

FAQs

Package last updated on 23 Dec 2022

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