Skip to content

@shermant/logger

Lightweight Multi-platform Logger

A graceful, chainable, and cross-platform logging solution for modern JavaScript applications

Sherman Logger

Quick Example

typescript
import { logger } from '@shermant/logger'

// Simple logging
logger.info.text('Application started').print()

// Chainable with styling
logger.success
  .prefix('✅ SUCCESS')
  .text('Database connected successfully')
  .detail('Connection established in 150ms')
  .print()

// Custom types
logger
  .type('custom', ['bgMagenta', 'bold'])
  .prefix('CUSTOM')
  .text('This is a custom log type')
  .print()

// Stream logging for progress
const stream = logger.stream
stream.prefix('📦 Installing').text('packages...').update()

// Multiple invocation methods
const infoLogger = logger.info
infoLogger('Callable syntax')
infoLogger('Multiple', 'parameters', 'supported')

Installation

bash
bun add @shermant/logger
bash
npm install @shermant/logger
bash
yarn add @shermant/logger
bash
pnpm add @shermant/logger

Why Choose Sherman Logger?

  • Developer Experience: Intuitive API that feels natural to use
  • Performance: Optimized for both development and production environments
  • Flexibility: Extensible design allows for custom logging patterns
  • Reliability: Comprehensive test suite ensures consistent behavior
  • Modern: Built with modern JavaScript/TypeScript best practices

Released under the ISC License.