Add obfuscated logger.

This commit is contained in:
Michael Mikovsky
2025-11-09 12:34:52 -07:00
parent 997b98491a
commit 0881e46a17
23 changed files with 1313 additions and 130 deletions
+4 -9
View File
@@ -3,20 +3,15 @@ use unshell_lib::{
module::{Manager, Module},
};
use unshell_obfuscate::obs;
#[macro_use]
extern crate log;
extern crate unshell_lib;
fn main() {
// Init the logger (This uses like 600MB of storage)
pretty_env_logger::init();
// #[cfg(not(feature = "obfuscate"))]
unshell_lib::logger::PrettyLogger::init();
info!("Initialized");
let s = obs!("Obvias string");
info!("{}", s);
match || -> Result<(), ModuleError> {
let args = std::env::args();
@@ -31,7 +26,7 @@ fn main() {
}() {
Ok(_) => {}
Err(e) => {
error!("ERROR! {:?}", e);
info!("ERROR! {:?}", e);
}
}
}