Socket
Book a DemoInstallSign in
Socket

@orda-io/orda-logger

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orda-io/orda-logger

Orda Logger: a very tiny logger written in Typescript, which is used in Orda project.

0.1.18
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

Orda Logger

Introduction

  • Orda Logger is a very tiny logger written in TypeScript, which is used in Orda-js project.
  • The size of Orda-logger is about 4KB.

Install

$ npm i @orda-io/orda-logger

How to use

You can use orda-logger as follows:

const logFactory = new OrdaLoggerFactory("trace");
const logger = logFactory.getLogger("test logging");
logger.trace("trace message");
logger.debug("debug message");
const num = 1234;
logger.info(`info message:${num}`);
logger.warn("warn message");
try {
  generate_error();
} catch (e) {
  logger.error("error message", e);
}
logger.log("log withPos back");
  • For nodejs, logging messages accompany by the file positions and the tags.

image

  • In the chrome console, logging messages accompany only by the tags.

image

Keywords

typescript-logger

FAQs

Package last updated on 08 Jul 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.