Appcore Log
This plugin adds the log()
method to an Appcore app. Under the hood, it uses debug, meaning it is both colorful and cross-platform compatible.
app; app;
The plugin also adds some alternative logging methods in case you need to be more specific.
app;
Using these methods instead of the generic log()
method means you can filter out messages based on their level.
app; // will only log info, warn and error messages
Note: This plugin will catch and log errors thrown by the application, instead of crashing the program like normal. Set logErrors
to false
before running the plugin to disable this feature.