puniyu_server 0.5.8

puniyu 的服务器模块
Documentation
1
2
3
4
5
6
7
8
9
10
use puniyu_logger::{LoggerOptions, init};
use std::env;

#[tokio::main]
async fn main() -> std::io::Result<()> {
	let log_level = env::var("LOGGER_LEVEL").unwrap_or("info".to_string());
	init(Some(LoggerOptions::new().with_level(log_level.as_str()).with_file_logging(true)));
	puniyu_server::run_server(None, None).await?;
	Ok(())
}