Skip to main content
The Deno 2 Release Candidate is here
Learn more

NextLog.ts

This library adds different console logs with status and color.

ChangeLog (0.1.0)

Functions:

error(message: any, ...options: any[]): void
info(message: any, ...options: any[]): void
ok(message: any, ...options: any[]): void
print(message: any, ...options: any[]): void
warn(message: any, ...options: any[]): void

Examples

import log from "./mod.ts";

(function main(): void {
  // Output: [<Date>] [<Time>] [<Status>] <Message>

  log.error("New Error!");

  log.info("New Info!");

  log.ok("New Ok!");

  log.print("New Print!");

  log.warn("New Warn");
})();

Output:

image

Created at 2021 ~ FlamesX-128