3.0.4 • Published 3 years ago

@lightsource/log v3.0.4

Weekly downloads
-
License
GPL-2.0-only
Repository
gitlab
Last release
3 years ago

Log

What is it

Class for console logging with multiple levels

Installation

yarn add @lightsource/log

OR

npm install @lightsource/log

Example of usage

import Log from '@lightsource/log';

Log.setAppName('Rabbit');
Log.setIsDebugMode(true);
Log.setErrorCallback((level, message, debugArgs) => {
    // TODO
});

Log.write(Log.level.DEBUG, 'My color is a', {name: 'white'});

Example of output

Rabbit : DEBUG : My color is a : 17.3
Object { name: "white" }
3.0.4

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.0

3 years ago

2.0.5

3 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago