1.1.7 • Published 7 years ago

logger-moduled v1.1.7

Weekly downloads
38
License
-
Repository
-
Last release
7 years ago

logger-moduled

Simple logging service for loggin to the browser's consonle. This small helper I already use as base logger in my application.

Features

  • debug(), trace(), info(), warn(), error() functions
  • grouping like in console with group(), groupCollapsed(), groupEnd()

Installation

npm install logger-moduled -save

Usage

import { getLogger, LoggingService } from 'logger-moduled';

LoggingService.enable(); // remove that line for production build so logging features are disabled

class SomeClass {

    log: LoggingService;

    constructor() {
        this.log = getLogger(this);
        this.log.debug('Debug message from service');
    }
}
1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago