- New Objects (Flexbox, Graph, Treeview) - Pluginsystem to add/remove functionality - Reworked the entire Object system, instead of one big Object Class we have multiple classes: Object, VisualObject, ChangeableObject - Instead of one big Frame Class we have multiple Frame Classes: BaseFrame, Frame, MovableFrame, ScrollableFrame, MonitorFrame, Flexbox - Removed the Animation Object, and added a animation plugin instead - Removed the Graphic Object and merged it's functionality with the image object - Updated currently existing objects
795 B
795 B
log
Description
Writes a message to the log file. This can be useful for debugging errors or keeping a record of events in your application. Log files are automatically removed when you start your program again.
Parameters
stringThe text to write into the log filestring- The type or category of the log message
Usage
- Writes "Hello!" into the log file
basalt.log("Hello!")
This should result in a file called basaltLog.txt. In the file it should say [Basalt][Debug]: Hello!.
- Writes "Config file missing" into the log file, with "WARNING" as the prefix.
basalt.log("Config file is missing", "WARNING")
This should result in a file called basaltLog.txt. In the file, it should say [Basalt][WARNING]: Config file is missing.