#[repr(u32)]pub enum LogFormat {
Default = 0,
Iso8601 = 1,
}Expand description
Logging Formats
The TRITONSERVER API offers two logging formats. The formats have a common set of fields but differ in how the timestamp for a log entry is represented. Messages are serialized according to JSON\n encoding rules by default. This behavior can be disabled by setting the environment variable TRITON_SERVER_ESCAPE_LOG_MESSAGES to “0”.
Variants§
Default = 0
<level><month><day><hour>:<min>:<sec>.<usec> <pid> <file>:<line>] <msg>
Example:
I0520 20:03:25.829575 3355 model_lifecycle.cc:441] “AsyncLoad() ‘simple’”
Iso8601 = 1
<year>-<month>-<day>T<hour>:<min>:<sec>Z <level> <pid> <file>:<line>] <msg>
Example:
2024-05-20T20:03:26Z I 3415 model_lifecycle.cc:441] “AsyncLoad() ‘simple’”
Trait Implementations§
impl Copy for LogFormat
impl Eq for LogFormat
impl StructuralPartialEq for LogFormat
Auto Trait Implementations§
impl Freeze for LogFormat
impl RefUnwindSafe for LogFormat
impl Send for LogFormat
impl Sync for LogFormat
impl Unpin for LogFormat
impl UnwindSafe for LogFormat
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