1use std::io;
2use thiserror::Error;
3use tracing_subscriber::filter::ParseError;
4
5#[derive(Error, Debug)]
6pub enum DynLogAPIErr {
7 #[error("Failed to read file: {filename}")]
8 FileReadError { filename: String, source: io::Error },
9 #[error("Failed to create directory: {path}")]
10 CreateLogDirError { path: String, source: io::Error },
11 #[error("Failed to deserialize toml")]
12 TomlDeserializeError(#[from] toml::de::Error),
13 #[error("Error parsing file logger table, there were no entries found.")]
14 InitializeFileloggerError,
15 #[error("Error parsing targets, there may be an issue with the declared modules.")]
16 TargetParseError(#[from] ParseError),
17}