Skip to content

This library adds different console logs with status and color in Deno.

License

Notifications You must be signed in to change notification settings

FlamesX-128/NextLog.ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NextLog.ts

This library adds different console logs with status and color.

ChangeLog (0.2.0)

The default export value was changed, now an export const.

Before

import log from "https://deno.land/x/nextlog@v0.1.0";

Now

import { log } from "https://deno.land/x/nextlog@v0.2.0";

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

About

This library adds different console logs with status and color in Deno.

Resources

License

Stars

Watchers

Forks

Packages

No packages published