Skip to main content
The Overlayed logging module provides comprehensive file and console logging for your application.

About

  • Logs are saved to files in your application’s log directory
    • %APPDATA%\overlayed\<applicationId>\logs
  • Logs are saved to files based on date
  • Logs are automatically deleted after 7 days

Log Levels

The logging module supports multiple log levels:
  • debug - Detailed information for debugging purposes
  • info - General information about application state
  • warn - Warnings that don’t stop execution but should be noted
  • error - Errors that may affect functionality

Using the Logger

Basic Logging

When log arguments are written to file, they’re processed with JSON.stringify().

Infinite Arguments

All log methods accept an infinite number of arguments.

File Output

Logs are also written to files in your application’s log directory:
  • app.log - Your application’s logs
  • main.log - Overlayed’s logs