@econsor-mobile/logging
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

@econsor-mobile/logging Build Status

This package is the core library for logging with javascript used in projects of econsor-mobile.

This library is heavily inspired by Serilog

Installation

Installation of the package with yarn

yarn add @econsor-mobile/logging

Installation of the package with npm

npm install --save @econsor-mobile/logging

Example

const logging = require('@econsor-mobile/logging');
const logger = logging
    .LoggerConfiguration
    .create()
    .setLogLevel(logging.LogLevel.Error)
    .addSink(logging.ConsoleSink.create())
    .createLogger();

logger.debug("Test debug");
logger.info("Test info");
logger.warn("Test warn");
logger.error("Test error");
logger.fatal("Test fatal");

Readme

Keywords

none

Package Sidebar

Install

npm i @econsor-mobile/logging

Weekly Downloads

2

Version

0.5.1

License

MIT

Unpacked Size

53.6 kB

Total Files

120

Last publish

Collaborators

  • nhutier