import{_ as e,a as s,b as t,ag as i}from"./chunks/framework.BcrMLAmg.js";const u=JSON.parse('{"title":"Log","description":"","frontmatter":{},"headers":[],"relativePath":"references/log.md","filePath":"references/log.md","lastUpdated":1757795332000}'),o={name:"references/log.md"};function l(n,a,r,h,d,g){return t(),s("div",null,a[0]||(a[0]=[i('
Logger module for Basalt. Logs messages to the console and optionally to a file.
| 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 |
Sets if the logger should log to a file.
Sets if the logger should log
Sends a debug message to the logger.
Log.debug("This is a debug message")Sends an info message to the logger.
Log.info("This is an info message")Sends a warning message to the logger.
Log.warn("This is a warning message")Sends an error message to the logger.
Log.error("This is an error message")