loggers-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Logger.js

Just another simple JavaScript logging framework.

Supports different named loggers (which can be enabled or disabled individually) and different logging levels.

Loggers can be configured through a global variable LOGGERS, through a URL query parameter ?loggers={name}={loglevel}, or programmaticaly.

Installation

Assuming you are using a package manager such as npm or Yarn, just install this package from the npm repository:

npm install loggers-js

Then you can import getLogger in your JavaScript code:

import {getLogger} from 'loggers-js';

Example

const logger = getLogger('mylogger');
logger.enable();
logger.setLevel('info');
logger.info('Hello world!');

Contributing

Everyone is welcome to contribute. Please read the Contributing agreement and the Development guide for more information, including how to run the tests.

Versioning

We use semantic versioning for this library and its API.

See the changelog for details about the changes in each release.

Readme

Keywords

none

Package Sidebar

Install

npm i loggers-js

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

999 kB

Total Files

13

Last publish

Collaborators

  • poeschko