The mapping from log levels to console methods. Defaults to:
{ debug: "debug", info: "info", warning: "warn", error: "error", fatal: "error", }
Record<LogLevel, ConsoleMethod>
Simple logging library with zero dependencies for Deno/Node.js/Bun/browsers
The mapping from log levels to console methods. Defaults to:
{ debug: "debug", info: "info", warning: "warn", error: "error", fatal: "error", }
Record<LogLevel, ConsoleMethod>
Add Package
deno add jsr:@logtape/logtape
Import symbol
import { type ConsoleSinkOptions } from "@logtape/logtape";
Import directly with a jsr specifier
import { type ConsoleSinkOptions } from "jsr:@logtape/logtape";
Add Package
pnpm i jsr:@logtape/logtape
pnpm dlx jsr add @logtape/logtape
Import symbol
import { type ConsoleSinkOptions } from "@logtape/logtape";
Add Package
yarn add jsr:@logtape/logtape
yarn dlx jsr add @logtape/logtape
Import symbol
import { type ConsoleSinkOptions } from "@logtape/logtape";
Add Package
vlt install jsr:@logtape/logtape
Import symbol
import { type ConsoleSinkOptions } from "@logtape/logtape";
Add Package
npx jsr add @logtape/logtape
Import symbol
import { type ConsoleSinkOptions } from "@logtape/logtape";
Add Package
bunx jsr add @logtape/logtape
Import symbol
import { type ConsoleSinkOptions } from "@logtape/logtape";