2.1.0 • Published 9 months ago

okayulogger v2.1.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
9 months ago

Build and Test

A simple console logger that has colors.

Rewritten in TypeScript as of 2.0.0.

Shows time, logger name, and some text, with some fancy colors to make it look nice. Includes info, warn, and error functions, as well as a Logger class.

Example output:

Preview Image

Standalone function usage

const { info, warn, error } = require('okayulogger');

info("example name", "Hello World! This is the info function!");
warn("example name", "Hello World! This is the warn function!");
error("example name", "Hello World! This is the error function!");

Class usage (recommended)

const { Logger } = require('okayulogger');

let L = new Logger("example name", true, false);

L.info("Hello World! This is the info function!");
L.warn("Hello World! This is the warn function!");
L.error("Hello World! This is the error function!");
2.1.0

9 months ago

2.0.3

1 year ago

2.0.2

1 year ago

1.4.2

1 year ago

1.4.1

2 years ago

2.0.1

1 year ago

1.4.0

2 years ago

2.0.0

1 year ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago