Skip to content

Loggical API Documentation v1.0.1


Loggical API Documentation / compactLogger

Variable: compactLogger

ts
const compactLogger: Logger;

Defined in: presets/instances.ts:41

Compact logger optimized for space-efficient logging

Features compact object formatting, symbols, and short timestamps for minimal visual footprint while preserving essential information. Ideal for server environments where log volume is high.

Example

typescript
import { compactLogger } from 'loggical'

compactLogger.info('Task completed', { id: 'task-123', duration: 150 })
// Output: 14:32:18.456 ℹ️ Task completed { id: "task-123", duration: 150ms }

Released under the MIT License.