Skip to content

@vainjs/logger

A fully-featured logging solution with local storage and smart upload strategies.

Logger

Quick Start โ€‹

Install and set up the logger in just a few steps:

bash
npm install @vainjs/logger
typescript
import { Logger } from '@vainjs/logger'

const logger = new Logger()
await logger.init()

await logger.info('Application started', { version: '1.0.0' })
await logger.error('Something went wrong', { error: 'details' })

Why Choose Logger? โ€‹

  • ๐ŸŽฏ Production Ready: Built with TypeScript, thoroughly tested, and production-proven
  • ๐Ÿ“ฑ Universal: Works in browsers and Node.js environments
  • ๐Ÿ”ง Developer Friendly: Excellent TypeScript support with comprehensive documentation
  • โšก Performance Focused: Efficient storage and smart upload strategies
  • ๐ŸŒ Internationalized: Documentation available in English and Chinese

What's Next? โ€‹

Released under the MIT License.