Skip to main content
This release is 1 version behind 0.6.3 — the latest version of @logtape/logtape. Jump to latest

Built and signed on GitHub Actions

Simple logging library with zero dependencies for Deno/Node.js/Bun/browsers

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 weeks ago (0.6.2)
type alias Sink

A sink is a function that accepts a log record and prints it somewhere. Thrown exceptions will be suppressed and then logged to the meta logger, a Logger with the category ["logtape", "meta"]. (In that case, the meta log record will not be passed to the sink to avoid infinite recursion.)

Definition

(record: LogRecord) => void

Add Package

deno add jsr:@logtape/logtape

Import symbol

import { type Sink } from "@logtape/logtape";

---- OR ----

Import directly with a jsr specifier

import { type Sink } from "jsr:@logtape/logtape";

Add Package

npx jsr add @logtape/logtape

Import symbol

import { type Sink } from "@logtape/logtape";

Add Package

yarn dlx jsr add @logtape/logtape

Import symbol

import { type Sink } from "@logtape/logtape";

Add Package

pnpm dlx jsr add @logtape/logtape

Import symbol

import { type Sink } from "@logtape/logtape";

Add Package

bunx jsr add @logtape/logtape

Import symbol

import { type Sink } from "@logtape/logtape";