1.0.8 • Published 6 years ago

@royportas/logging v1.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Logging

Build Status Maintainability

A logging framework for browsers and node

How is this different from other logging frameworks?

This framework is designed with the following things in mind:

  • Be as simple as possible
  • Provide a simple way to log and group particular classes
  • Be easy to turn off logs for particular classes

Design Principles

  • Easy to use
  • Works in the browser

Example

import { Logger, RootLogger } from "@royportas/logging";

const root = RootLogger();

class MyClass {
    
    logger: Logger;

    constructor() {
        super();
        this.logger = root.getLogger(this.constructor.name);
    }

    somethingHappened() {
        this.logger.debug("A thing happened");
    }
}

See the example folder for more usage examples.

Deploying and publishing

The script yarn deploy handles publishing new versions to NPM and pushing the docs to Github pages

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago