Skip to main content

DyeLog is a simple (but colorful) logger for Deno.

Works with
It is unknown whether this package works with Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Browsers
JSR Score
88%
Published
2 months ago

DyeLog

deno land
deno version continuous_integration License: MIT

A simple (but colorful) logger for Deno.

DyeLog X URL

Find me at Deno.X https://deno.land/x/dyelog. DyeLog is also available in JSR: https://jsr.io/@littlelite/dyelog.

Usage

import { DyeLog, LogLevel } from "@littlelite/dyelog";

const logger = new DyeLog({
    timestamp: true,
    printlevel: true,
    level: LogLevel.TRACE
});

logger.trace("This is trace");
logger.info("This is info");
logger.warn("This is warn");
logger.debug("This is debug");
logger.error("This is error");

Add Package

deno add @littlelite/dyelog

Import symbol

import * as mod from "@littlelite/dyelog";

Add Package

npx jsr add @littlelite/dyelog

Import symbol

import * as mod from "@littlelite/dyelog";

Add Package

yarn dlx jsr add @littlelite/dyelog

Import symbol

import * as mod from "@littlelite/dyelog";

Add Package

pnpm dlx jsr add @littlelite/dyelog

Import symbol

import * as mod from "@littlelite/dyelog";

Add Package

bunx jsr add @littlelite/dyelog

Import symbol

import * as mod from "@littlelite/dyelog";