Files
Basalt/docs/objects/Basalt/log.md
Robert Jelic bb1b1beb79 Basalt 1.7 Update
- 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
2023-04-30 17:05:34 +02:00

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

  1. string The text to write into the log file
  2. string - 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.