feat: basic triangle rendering

This commit is contained in:
Chance 2025-04-16 01:24:10 +00:00 committed by BitSyndicate
parent f215c10d0e
commit 43f8f46021
Signed by: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
11 changed files with 1828 additions and 67 deletions

View file

@ -1,6 +1,7 @@
use crate::LogLevel;
use std::path::{Path, PathBuf};
use crate::LogLevel;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct LoggerConfig {
pub(crate) log_level: LogLevel,
@ -17,26 +18,32 @@ impl LoggerConfig {
self.log_level = level;
self
}
pub fn log_to_file(mut self, f: bool) -> Self {
self.log_to_file = f;
self
}
pub fn colored_stdout(mut self, c: bool) -> Self {
self.stdout_color = c;
self
}
pub fn log_to_stdout(mut self, s: bool) -> Self {
self.log_to_stdout = s;
self
}
pub fn log_path<P: AsRef<Path>>(mut self, p: P) -> Self {
self.log_file_path = p.as_ref().to_path_buf();
self
}
pub fn stdout_include_time(mut self, i: bool) -> Self {
self.stdout_include_time = i;
self
}
pub fn file_include_time(mut self, i: bool) -> Self {
self.file_include_time = i;
self