npm.io
0.0.4 • Published 1 year ago

dulllog

Licence
MIT
Version
0.0.4
Deps
0
Size
20 kB
Vulns
0
Weekly
0

dulllog

Simple and small logger with console interaction

Usage

import "dullog";

const l = L.extend("MY_SCOPE");

// Prefix and color arguments are optional
l.log("Hello!", "Optional prefix", "rgb(255, 0, 0)");

See example for a more detailed example usage.

You can interact with the logger via Browser Developer Console, e.g. to enable a single logging scope:

L.only(L.MY_SCOPE); // To activate a specific logging scope
L.mute(); // To mute all logging scopes

Keywords