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 purposesinfo
- General information about application statewarn
- Warnings that don’t stop execution but should be notederror
- 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 logsmain.log
- Overlayed’s logs
Bug Reports
To facilitate user-driven bug reports or automatic bug reports, you can use thebugReport
method.
Bug reports can then be viewed in your Overlayed dashboard.
Type
Type
You may put any property you want in the info object, but the ones in the interface below are recommended and will be directly displayed in the bug report and can be filtered on, etc.
Additional Files
If you have your own data to include in the bug report, for example the current stored state of a match, you can pass it as an object with theadditionalFiles
property:
Debug Mode
Enabling
Debug mode can be enabled in yourOverlayedOptions
configuration:
- logger.debug() logs will be printed and saved to the log file
- Logs from Overlayed’s internals will be logged to the console