pub enum ReplayLoggingConfig {
SuppressAll,
AllowAll,
ErrorsOnly,
WarningsAndErrors,
}Expand description
Configuration for replay-aware logging behavior.
This configuration controls how the ReplayAwareLogger handles log messages
during replay. Users can choose to suppress all logs during replay, allow
only certain log levels, or log all messages regardless of replay status.
Variants§
SuppressAll
Suppress all logs during replay (default).
When in replay mode, no log messages will be emitted. This is useful to reduce noise in logs when replaying previously executed operations.
AllowAll
Allow all logs during replay.
Log messages will be emitted regardless of replay status. The is_replay
flag in LogInfo can still be used to distinguish replay logs.
ErrorsOnly
Allow only error logs during replay.
Only error-level messages will be emitted during replay. This is useful when you want to see errors but suppress informational messages.
WarningsAndErrors
Allow error and warning logs during replay.
Error and warning-level messages will be emitted during replay. Debug and info messages will be suppressed.
Trait Implementations§
Source§impl Clone for ReplayLoggingConfig
impl Clone for ReplayLoggingConfig
Source§fn clone(&self) -> ReplayLoggingConfig
fn clone(&self) -> ReplayLoggingConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReplayLoggingConfig
impl Debug for ReplayLoggingConfig
Source§impl Default for ReplayLoggingConfig
impl Default for ReplayLoggingConfig
Source§fn default() -> ReplayLoggingConfig
fn default() -> ReplayLoggingConfig
Source§impl PartialEq for ReplayLoggingConfig
impl PartialEq for ReplayLoggingConfig
impl Copy for ReplayLoggingConfig
impl Eq for ReplayLoggingConfig
impl StructuralPartialEq for ReplayLoggingConfig
Auto Trait Implementations§
impl Freeze for ReplayLoggingConfig
impl RefUnwindSafe for ReplayLoggingConfig
impl Send for ReplayLoggingConfig
impl Sync for ReplayLoggingConfig
impl Unpin for ReplayLoggingConfig
impl UnsafeUnpin for ReplayLoggingConfig
impl UnwindSafe for ReplayLoggingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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 more