exoproc-utils
v0.1.0
Published
Simple file-based logger for the Exoproc ecosystem
Maintainers
Readme
exoproc-utils
Shared utilities, error classes, and logger configurations for the Exoproc ecosystem. Built on Winston, it supports level-filtered file logging and environment-driven configuration.
Installation
bun add exoproc-utilsQuick Start
import { Logger } from 'exoproc-utils';
// Instantiate package-level logger
export const log = new Logger('MyModule');
// Write log entries
log.info('Service started');
log.debug('Variable value:', { x: 42 });
log.warn('Execution delayed');Features
- Winston Logger Wrapper: Simple log level filtering (
debug,info,warn,error,fatal). - Dynamic File Rotation: Writes log files under
logs/directory automatically with daily log rotation. - Environment Integration: Integrates with
dotenvto load.envvariables and automatically configure logging levels usingEXOPROC_LOG_LEVEL.
