Skip to content

LogMate v0.1.0 - Initial Release

Choose a tag to compare

@xenral xenral released this 31 Mar 12:54
· 6 commits to main since this release

We're excited to announce the initial release of LogMate, a minimal, structured logging utility for TypeScript projects.

Features

  • Structured JSON logging with type safety
  • Multiple log levels (debug, info, warn, error, fatal)
  • Context support for enriching log entries
  • Child loggers for component-specific logging
  • Pretty formatting with color-coded output in development
  • Environment-aware configuration
  • Minimal dependencies
  • Comprehensive test coverage

Getting Started

# Install the package
npm install logmate
// Basic usage
import { logger } from 'logmate';

// Simple logging
logger.info('Application started');

// With context
logger.info('User logged in', { userId: '123', role: 'admin' });

// Error logging
try {
  throw new Error('Something went wrong');
} catch (error) {
  logger.error('Operation failed', { operation: 'data-import' }, error);
}

Next Steps

We're planning to add more features in upcoming releases, including:

  • Additional transports (file, HTTP, etc.)
  • Log rotation capabilities
  • Configuration via environment variables
  • Performance optimizations

Thank you for using LogMate!