wolf
Types
pub type LogLevel {
Error
Warning
Info
Success
Debug
}
Constructors
-
Error
-
Warning
-
Info
-
Success
-
Debug
Functions
pub fn greet() -> Nil
pub fn log_to_file(
message: String,
filepath: String,
level: LogLevel,
) -> Result(Nil, FileError)
Logs a message to a file
Examples
pub fn main() {
wolf.log_to_file("log", "log.txt", wolf.Warning)
}
pub fn main() -> Result(Nil, FileError)