Skip to content

okawaffles/okayuLogger

Repository files navigation

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!");

About

A simple console logger that has colors. Originally part of OkayuCDN but moved to its own package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published