Files
pos-system/packages/logger/README.md
Ho Ngoc Hai 019c79b898 Refactor auth-service to iam-service and update related configurations
- Renamed auth-service to iam-service across various files for consistency.
- Updated deployment workflows, database migration scripts, and documentation to reflect the service name change.
- Enhanced bilingual documentation for clarity on the new service structure and usage.
- Removed outdated references to auth-service in scripts and configuration files to streamline the project structure.
2025-12-30 21:03:00 +07:00

621 B

@goodgo/logger

Centralized logging utility using Winston.

Usage

import { logger, createLogger } from '@goodgo/logger';

// Use default logger
logger.info('Application started');
logger.error('Error occurred', { error: err });

// Create custom logger
const customLogger = createLogger({
  level: 'debug',
  serviceName: 'iam-service',
  enableFile: true,
  logDir: './logs',
});

Configuration

  • level: Log level (error, warn, info, debug)
  • serviceName: Service identifier
  • enableConsole: Enable console output
  • enableFile: Enable file logging
  • logDir: Directory for log files