Package Exports
- @orchard9ai/logging
Readme
@orchard9ai/logging
A high-performance, extensible logging library for Orchard9 applications with support for multiple transports, structured logging, and PII safety.
Features
- 🚀 High Performance - Minimal overhead with lazy evaluation
- 🔧 Extensible - Multiple transports and formatters
- 🔒 Secure - Automatic PII sanitization
- 📊 Structured - First-class support for structured logging
- 🌐 Universal - Works in browsers, Node.js, and Tauri
- 📦 Tree-shakeable - Only include what you use
Installation
npm install @orchard9ai/logging
# or
pnpm add @orchard9ai/logging
# or
yarn add @orchard9ai/loggingQuick Start
import { createLogger } from '@orchard9ai/logging';
// Create a logger
const logger = createLogger('MyApp');
// Basic logging
logger.info('Application started');
logger.error('Something went wrong', { error });
// With context
const userLogger = logger.child({ userId: '123' });
userLogger.debug('User action', { action: 'clicked' });Status
This package is currently under development. See tasks.md for the implementation roadmap.
License
MIT © Orchard9