Better logging with plugin fix

This commit is contained in:
2025-08-30 03:00:18 +02:00
parent 19c102a7e8
commit 9b07d1281f
9 changed files with 53 additions and 33 deletions
+6 -2
View File
@@ -1,11 +1,15 @@
use voxa_server::{export_plugin, plugin::Plugin};
use voxa_server::{export_plugin, logger, plugin::Plugin};
logger! {
const LOGGER "My Plugin"
}
#[derive(Default)]
pub struct MyPlugin;
impl Plugin for MyPlugin {
fn init(&mut self) {
println!("MyPlugin initialized!");
LOGGER.info("MyPlugin initialized!");
}
}