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

2.2.1 • Public • Published

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

Package Sidebar

Install

npm i okayulogger

Weekly Downloads

55

Version

2.2.1

License

GPL-3.0

Unpacked Size

133 kB

Total Files

11

Last publish

Collaborators

  • okawaffles