Skip to main content

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
5 days ago (0.4.2)
interface Config

A configuration for the loggers.

Type Parameters

TSinkId extends string
TFilterId extends string

Properties

sinks: Record<TSinkId, Sink>

The sinks to use. The keys are the sink identifiers, and the values are Sinks.

The filters to use. The keys are the filter identifiers, and the values are either Filters or LogLevels.

The loggers to configure.

optional
reset: boolean

Whether to reset the configuration before applying this one.

Add Package

deno add @logtape/logtape

Import symbol

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

Add Package

npx jsr add @logtape/logtape

Import symbol

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

Add Package

yarn dlx jsr add @logtape/logtape

Import symbol

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

Add Package

pnpm dlx jsr add @logtape/logtape

Import symbol

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

Add Package

bunx jsr add @logtape/logtape

Import symbol

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