pub struct Logger {
pub config: Arc<CubeClRuntimeConfig>,
/* private fields */
}Expand description
Central logging utility for CubeCL, managing multiple log outputs.
Fields§
§config: Arc<CubeClRuntimeConfig>Global configuration for logging settings.
Implementations§
Source§impl Logger
impl Logger
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new Logger instance based on the global configuration.
Note that creating a logger is quite expensive.
Sourcepub fn log_streaming<S: Display>(&mut self, msg: &S)
pub fn log_streaming<S: Display>(&mut self, msg: &S)
Logs a message for streaming, directing it to all configured streaming loggers.
Sourcepub fn log_memory<S: Display>(&mut self, msg: &S)
pub fn log_memory<S: Display>(&mut self, msg: &S)
Logs a message for memory, directing it to all configured memory loggers.
Sourcepub fn log_compilation<S: Display>(&mut self, msg: &S)
pub fn log_compilation<S: Display>(&mut self, msg: &S)
Logs a message for compilation, directing it to all configured compilation loggers.
Sourcepub fn log_profiling<S: Display>(&mut self, msg: &S)
pub fn log_profiling<S: Display>(&mut self, msg: &S)
Logs a message for profiling, directing it to all configured profiling loggers.
Sourcepub fn log_autotune<S: Display>(&mut self, msg: &S)
pub fn log_autotune<S: Display>(&mut self, msg: &S)
Logs a message for autotuning, directing it to all configured autotuning loggers.
Sourcepub fn log_level_streaming(&self) -> StreamingLogLevel
pub fn log_level_streaming(&self) -> StreamingLogLevel
Returns the current streaming log level from the global configuration.
Sourcepub fn log_level_autotune(&self) -> AutotuneLogLevel
pub fn log_level_autotune(&self) -> AutotuneLogLevel
Returns the current autotune log level from the global configuration.
Sourcepub fn log_level_compilation(&self) -> CompilationLogLevel
pub fn log_level_compilation(&self) -> CompilationLogLevel
Returns the current compilation log level from the global configuration.
Sourcepub fn log_level_profiling(&self) -> ProfilingLogLevel
pub fn log_level_profiling(&self) -> ProfilingLogLevel
Returns the current profiling log level from the global configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnsafeUnpin for Logger
impl UnwindSafe for Logger
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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