Skip to main content
Home
This package has been archived, and as such it is read-only.

Built and signed on GitHub Actions

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

Constructors

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

Properties

private
readonly
_level: LogLevel
private
readonly
_prefix: Maybe<string>
private
readonly
_services: Maybe<string>[]
private
readonly
prefix: string
private
readonly
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

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

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";