Options for the getConsoleSink function.
optional
formatter: ConsoleFormatter | TextFormatter
The console formatter or text formatter to use. Defaults to defaultConsoleFormatter.
Simple logging library with zero dependencies for Deno/Node.js/Bun/browsers
Options for the getConsoleSink function.
formatter: ConsoleFormatter | TextFormatter
The console formatter or text formatter to use. Defaults to defaultConsoleFormatter.
Add Package
deno add jsr:@logtape/logtape
Import symbol
import { type ConsoleSinkOptions } from "@logtape/logtape";
---- OR ----
Import directly with a jsr specifier
import { type ConsoleSinkOptions } from "jsr:@logtape/logtape";
Add Package
npx jsr add @logtape/logtape
Import symbol
import { type ConsoleSinkOptions } from "@logtape/logtape";
Add Package
yarn dlx jsr add @logtape/logtape
Import symbol
import { type ConsoleSinkOptions } from "@logtape/logtape";
Add Package
pnpm dlx 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";