Files
Basalt2/docs/references/log.md
2025-09-13 20:28:52 +00:00

1.0 KiB

Log

Logger module for Basalt. Logs messages to the console and optionally to a file.

Functions

Method Returns Description
Log.setLogToFile - Sets if the logger should log to a file
Log.setEnabled - Sets if the logger should log
Log.debug - Sends a debug message
Log.info - Sends an info message
Log.warn - Sends a warning message
Log.error - Sends an error message

Log.setLogToFile()

Sets if the logger should log to a file.

Log.setEnabled()

Sets if the logger should log

Log.debug()

Sends a debug message to the logger.

Usage

Log.debug("This is a debug message")

Log.info()

Sends an info message to the logger.

Usage

Log.info("This is an info message")

Log.warn()

Sends a warning message to the logger.

Usage

Log.warn("This is a warning message")

Log.error()

Sends an error message to the logger.

Usage

Log.error("This is an error message")