Skip to main content

Built and signed on GitHub Actions

File sink and rotating file sink for LogTape

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
4 weeks ago (0.9.0)
interface RotatingFileSinkOptions

Options for the getBaseRotatingFileSink function.

Properties

optional
maxSize: number

The maximum bytes of the file before it is rotated. 1 MiB by default.

optional
maxFiles: number

The maximum number of files to keep. 5 by default.

Add Package

deno add jsr:@logtape/file

Import symbol

import { type RotatingFileSinkOptions } from "@logtape/file";

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @logtape/file

Import symbol

import { type RotatingFileSinkOptions } from "@logtape/file";

Add Package

yarn dlx jsr add @logtape/file

Import symbol

import { type RotatingFileSinkOptions } from "@logtape/file";

Add Package

pnpm dlx jsr add @logtape/file

Import symbol

import { type RotatingFileSinkOptions } from "@logtape/file";

Add Package

bunx jsr add @logtape/file

Import symbol

import { type RotatingFileSinkOptions } from "@logtape/file";