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
2 weeks ago (0.8.0)
property LogRecord.rawMessage

The raw log message. This is the original message template without any further processing. It can be either:

  • A string without any substitutions if the log record was created with a method call syntax, e.g., "Hello, {name}!" for logger.info("Hello, {name}!", { name }).
  • A template string array if the log record was created with a tagged template literal syntax, e.g., ["Hello, ", "!"] for ``logger.info`Hello, ${name}!```.

Type

string | TemplateStringsArray

Add Package

deno add jsr:@logtape/logtape

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @logtape/logtape

Import symbol

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

Add Package

yarn dlx jsr add @logtape/logtape

Import symbol

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

Add Package

pnpm dlx jsr add @logtape/logtape

Import symbol

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

Add Package

bunx jsr add @logtape/logtape

Import symbol

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