This commit is contained in:
NoryiE
2025-02-18 08:47:22 +00:00
parent 6d4db0b931
commit 3abd20a509
35 changed files with 1633 additions and 305 deletions

View File

@@ -1,4 +1,5 @@
# Log
Logger module for Basalt. Logs messages to the console and optionally to a file.
## Fields
@@ -21,9 +22,12 @@
|[Log.setLogToFile](#Log.setLogToFile)|-|Sets if the logger should log to a file
|[Log.warn](#Log.warn)|-|Sends a warning message
## Log.debug()
## Log.debug(...)
Sends a debug message to the logger.
### Parameters
* `...` *(vararg)* `string` The message to log
### Usage
```lua
Log.debug("This is a debug message")
@@ -68,3 +72,4 @@ Sends a warning message to the logger.
Log.warn("This is a warning message")
```