robotech 1.5.0

Backend service implementation for the RoboTech platform, providing RESTful APIs and business logic for web applications.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::cfg::CfgError;
use crate::env::EnvError;
use thiserror::Error;
use tracing_appender::rolling::InitError;

#[derive(Error, Debug)]
pub enum LogError {
    #[error("{0}")]
    Cfg(#[from] CfgError),
    #[error("{0}")]
    GetEnv(#[from] EnvError),
    #[error("Fail to create file appender: {0}")]
    CreateFileAppender(InitError),
    #[error("Fail to set LOG_GUARD")]
    SetLogGuard(),
    #[error("Fail to set LOG_CONFIG_GUARD")]
    SetLogConfigGuard(),
}