This library adds different console logs with status and color.
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";
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
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: