pub struct Logger {
pub config: Arc<GlobalConfig>,
/* private fields */
}
Expand description
Central logging utility for CubeCL, managing multiple log outputs.
Fields§
§config: Arc<GlobalConfig>
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.
Initializes loggers for compilation, profiling, and autotuning based on the settings in
GlobalConfig
.
Note that creating a logger is quite expensive.
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_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.