Skip to main content
Home

Built and signed on GitHub Actions

A simple logging library for Project Kraken

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
a year ago (0.0.12)
function checkLevel
checkLevel(
currentLevel: LogLevel,
level: LogLevel,
): boolean

Checks if a given log level should be displayed based on the current log level.

Parameters

currentLevel: LogLevel
  • The current log level.
level: LogLevel
  • The log level to check against.

Return Type

True if the log should be displayed, false otherwise.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@joyautomation/coral

Import symbol

import { checkLevel } from "@joyautomation/coral";
or

Import directly with a jsr specifier

import { checkLevel } from "jsr:@joyautomation/coral";

Add Package

pnpm i jsr:@joyautomation/coral
or (using pnpm 10.8 or older)
pnpm dlx jsr add @joyautomation/coral

Import symbol

import { checkLevel } from "@joyautomation/coral";

Add Package

yarn add jsr:@joyautomation/coral
or (using Yarn 4.8 or older)
yarn dlx jsr add @joyautomation/coral

Import symbol

import { checkLevel } from "@joyautomation/coral";

Add Package

vlt install jsr:@joyautomation/coral

Import symbol

import { checkLevel } from "@joyautomation/coral";

Add Package

npx jsr add @joyautomation/coral

Import symbol

import { checkLevel } from "@joyautomation/coral";

Add Package

bunx jsr add @joyautomation/coral

Import symbol

import { checkLevel } from "@joyautomation/coral";