Application Logging System

Provides a comprehensive logging infrastructure for tracking application events, debugging issues, and maintaining audit trails of system activity.

Key features:

  • Hierarchical log levels (DEBUG, INFO, WARNING, ERROR, CRITICAL)
  • Configurable log filtering based on user preferences
  • Automatic log rotation to prevent excessive file growth
  • Log file management with archiving and cleanup
  • Log deduplication to reduce storage requirements
  • Log retrieval with filtering and pagination options

The module creates and maintains log files in the user's application data directory, with the current logs in 'latest.log' and archived logs in date-stamped files.

Functions

saveLog
getLogs
clearLogs
getAvailableLogFiles
getLogsFromFile