Skip to main content

Built and signed on GitHub Actions

This package works with Deno, Bun
This package works with Deno
This package works with Bun
JSR Score
58%
Published
2 months ago (0.2.0)
class HoneyLogger
implements Logger

Constructors

new
HoneyLogger(
prefix?: string,
level?: LogLevel,
...services: string[],
)

Properties

private
readonly
_level: LogLevel
readonly
private
_prefix: Maybe<string>
private
readonly
_services: Maybe<string>[]
private
readonly
prefix: string
readonly
private
services: string
private
readonly
timestamp: string

Methods

debug(message: string): void
error(message: string): void
private
format(
message: string,
level: number,
color: LogColors,
): string
info(message: string): void
log(message: string): void
private
paint(
message: string,
color: LogColors,
): string
warn(message: string): void

Add Package

deno add jsr:@honey/common

Import symbol

import { HoneyLogger } from "@honey/common/logger";

---- OR ----

Import directly with a jsr specifier

import { HoneyLogger } from "jsr:@honey/common/logger";

Add Package

bunx jsr add @honey/common

Import symbol

import { HoneyLogger } from "@honey/common/logger";