netstack: Merge the redox_netstack lib into smolnetd

This commit is contained in:
bjorn3
2025-06-28 16:18:34 +02:00
parent 20ee161085
commit 2f51590d9f
9 changed files with 25 additions and 10 deletions
+17
View File
@@ -0,0 +1,17 @@
use redox_log::{OutputBuilder, RedoxLogger};
pub fn init_logger(process_name: &str) {
if let Err(_) = RedoxLogger::new()
.with_output(
OutputBuilder::stdout()
.with_ansi_escape_codes()
.flush_on_newline(true)
.with_filter(log::LevelFilter::Trace)
.build(),
)
.with_process_name(process_name.into())
.enable()
{
eprintln!("{process_name}: Failed to init logger")
}
}