proxy_logger 0.1.4

Command line interface for proxying TCP connections with payload output into console which can be formatted different ways.
Documentation
use clap::Parser;
use proxy_logger::initialize_tcp_listener;
use proxy_logger::Arguments;
use std::env;

#[tokio::main(flavor = "multi_thread", worker_threads = 4)]
async fn main() {
    let arguments = Arguments::parse();

    env::set_var("RUST_LOG", arguments.level.to_string());
    env_logger::builder()
        .parse_default_env()
        .format_target(false)
        .format_module_path(false)
        .format_timestamp(Some(From::from(arguments.precision)))
        .init();

    initialize_tcp_listener(arguments).await;
}