#[repr(C)]pub struct C4LogFileOptions {
pub log_level: C4LogLevel,
pub base_path: FLString,
pub max_size_bytes: i64,
pub max_rotate_count: i32,
pub use_plaintext: bool,
pub header: FLString,
}Expand description
Configuration for file-based logging.
Fields§
§log_level: C4LogLevel< The minimum level of message to be logged
base_path: FLString< The path to the binary log file base name (other elements will be added)
max_size_bytes: i64< The maximum size of each log file (minimum 1024)
max_rotate_count: i32< The maximum amount of old log files to keep
use_plaintext: bool< Disables binary encoding of the logs (not recommended)
header: FLString< Header text to print at the start of every log file
Trait Implementations§
Source§impl Clone for C4LogFileOptions
impl Clone for C4LogFileOptions
Source§fn clone(&self) -> C4LogFileOptions
fn clone(&self) -> C4LogFileOptions
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 C4LogFileOptions
impl Debug for C4LogFileOptions
impl Copy for C4LogFileOptions
Auto Trait Implementations§
impl Freeze for C4LogFileOptions
impl RefUnwindSafe for C4LogFileOptions
impl !Send for C4LogFileOptions
impl !Sync for C4LogFileOptions
impl Unpin for C4LogFileOptions
impl UnwindSafe for C4LogFileOptions
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