Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
jsr-probitas/probitasIt is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
88%
Published
2 days ago (0.2.7)
Unified logging interface for Probitas packages.
This package provides a centralized logging system built on LogTape. It offers consistent logging across all Probitas packages with configurable log levels, pretty formatting, and hierarchical categories.
Links
- GitHub Repository
- @probitas/probitas - Main package (recommended for most users)
- LogTape - Underlying logging library
Related Packages
All Probitas packages use this logger internally: @probitas/runner, @probitas/reporter, @probitas/discover, @probitas/cli
Core Functions
configureLogging- Initialize the logging system with a log levelgetLogger- Get a logger instance for a categoryresetLogging- Reset logging configuration (for testing)
Types
Logger- Logger interface from LogTapeLogLevel- Available log levels
Log Levels
From least to most verbose:
"fatal"- Critical errors that stop execution"error"- Errors that don't stop execution"warning"- Potential issues (default level)"info"- Informational messages about execution"debug"- Detailed debugging information
Category Hierarchy
Loggers use hierarchical categories following the package structure:
["probitas"]- Root category for all Probitas logs["probitas", "runner"]- Runner package logs["probitas", "cli", "run"]- Specific command logs
Basic configuration
Basic configuration
import { configureLogging, getLogger } from "@probitas/logger"; // Configure logging at startup await configureLogging("info"); // Get a logger for your module const logger = getLogger("probitas", "mymodule"); logger.info("Application started"); logger.debug("Debug details", { config: { ... } }); logger.error("Something went wrong", { error });
Adjusting log level dynamically
Adjusting log level dynamically
import { configureLogging } from "@probitas/logger"; // Start with minimal logging await configureLogging("warning"); // Enable debug logs when troubleshooting await configureLogging("debug");
Built and signed on
GitHub Actions
Add Package
deno add jsr:@probitas/logger
Import symbol
import * as logger from "@probitas/logger";
Import directly with a jsr specifier
import * as logger from "jsr:@probitas/logger";
Add Package
pnpm i jsr:@probitas/logger
pnpm dlx jsr add @probitas/logger
Import symbol
import * as logger from "@probitas/logger";
Add Package
yarn add jsr:@probitas/logger
yarn dlx jsr add @probitas/logger
Import symbol
import * as logger from "@probitas/logger";
Add Package
vlt install jsr:@probitas/logger
Import symbol
import * as logger from "@probitas/logger";
Add Package
npx jsr add @probitas/logger
Import symbol
import * as logger from "@probitas/logger";
Add Package
bunx jsr add @probitas/logger
Import symbol
import * as logger from "@probitas/logger";