1.1.7 • Published 8 years ago

logger-moduled v1.1.7

Weekly downloads
38
License
-
Repository
-
Last release
8 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

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

9 years ago