pub struct EnclaveProcLogWriter { /* private fields */ }Expand description
A log writer which outputs its messages to a custom file. It also allows the updating of its ID, in order to indicate which process is actually logging a message. This implementation will also enable synchronized logging to a centralized file for multiple enclaves.
Implementations§
Source§impl EnclaveProcLogWriter
impl EnclaveProcLogWriter
Sourcepub fn new() -> NitroCliResult<Self>
pub fn new() -> NitroCliResult<Self>
Create a new log writer.
Sourcepub fn update_logger_id(&self, new_id: &str) -> NitroCliResult<()>
pub fn update_logger_id(&self, new_id: &str) -> NitroCliResult<()>
Update the logger ID (correlated with the process which is doing logging).
Trait Implementations§
Source§impl Clone for EnclaveProcLogWriter
impl Clone for EnclaveProcLogWriter
Source§impl LogWriter for EnclaveProcLogWriter
impl LogWriter for EnclaveProcLogWriter
Source§fn write(&self, now: &mut DeferredNow, record: &Record<'_>) -> Result<()>
fn write(&self, now: &mut DeferredNow, record: &Record<'_>) -> Result<()>
Writes out a log line. Read more
Source§fn max_log_level(&self) -> LevelFilter
fn max_log_level(&self) -> LevelFilter
Provides the maximum log level that is to be written.
Auto Trait Implementations§
impl Freeze for EnclaveProcLogWriter
impl RefUnwindSafe for EnclaveProcLogWriter
impl Send for EnclaveProcLogWriter
impl Sync for EnclaveProcLogWriter
impl Unpin for EnclaveProcLogWriter
impl UnsafeUnpin for EnclaveProcLogWriter
impl UnwindSafe for EnclaveProcLogWriter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.