pub struct log_service_config_t {
pub persistentLevel: LOG_LEVEL,
pub consoleLevel: LOG_LEVEL,
pub maxStorageSize: u64,
pub maxStoragePeriod: i32,
pub logFilePath: String,
pub logFilePrefix: String,
pub self_addr: SocketAddr,
pub syslog_server: Option<SocketAddr>,
}Expand description
configuration for create a log service
Fields§
§persistentLevel: LOG_LEVEL§consoleLevel: LOG_LEVEL§maxStorageSize: u64max log file disk size, unit is bytes, if the stored log file exceed this value, then the file will be tuncated
maxStoragePeriod: i32§logFilePath: String§logFilePrefix: String§self_addr: SocketAddr§syslog_server: Option<SocketAddr>Implementations§
Source§impl log_service_config_t
impl log_service_config_t
pub fn new_default() -> Self
Trait Implementations§
Source§impl Clone for log_service_config_t
impl Clone for log_service_config_t
Source§fn clone(&self) -> log_service_config_t
fn clone(&self) -> log_service_config_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for log_service_config_t
impl Debug for log_service_config_t
Source§impl<'de> Deserialize<'de> for log_service_config_t
impl<'de> Deserialize<'de> for log_service_config_t
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for log_service_config_t
impl RefUnwindSafe for log_service_config_t
impl Send for log_service_config_t
impl Sync for log_service_config_t
impl Unpin for log_service_config_t
impl UnwindSafe for log_service_config_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more