JSPM

@orchard9ai/logging

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q37292F
  • License MIT

Federated logging package for Orchard9 applications

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/logging

Quick 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