@econsor-mobile/logging

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

Stats

StarsIssuesVersionUpdatedCreatedSize
@econsor-mobile/logging
0.5.1a year ago4 years agoMinified + gzip package size for @econsor-mobile/logging in KB

Readme

@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");

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.