Skip to main content

Logger

Struct Logger 

Source
pub struct Logger { /* private fields */ }
Expand description

Main logger struct

Implementations§

Source§

impl Logger

Source

pub fn new() -> Self

Source

pub fn with_level(self, level: LogLevel) -> Self

Source

pub fn quiet(self) -> Self

Source

pub fn section(&self, title: &str)

Print a section header with enhanced styling

Source

pub fn subsection(&self, title: &str)

Print a subsection with better visual hierarchy

Source

pub fn success(&self, message: &str)

Print success message with enhanced styling

Source

pub fn error(&self, message: &str)

Print error message with enhanced styling

Source

pub fn warn(&self, message: &str)

Print warning message with enhanced styling

Source

pub fn info(&self, message: &str)

Print info message with enhanced styling

Source

pub fn debug(&self, message: &str)

Print debug message with enhanced styling

Source

pub fn list(&self, items: &[&str], title: Option<&str>)

Print a list of items with enhanced styling

Source

pub fn table(&self, rows: &[(&str, &str)])

Print a table-like structure with enhanced styling

Source

pub fn summary(&self, title: &str, items: &[(&str, &str)])

Print a summary box with enhanced styling

Source

pub fn progress(&self, message: &str) -> Option<Progress>

Start a progress indicator

Source

pub fn command(&self, cmd: &str, args: &[&str])

Print a command being executed with enhanced styling

Source

pub fn module_status(&self, module: &str, status: &str, workspace: Option<&str>)

Print module processing status with enhanced styling

Source

pub fn module_header(&self, module: &str)

Print module header with enhanced styling

Source

pub fn workspace_discovery(&self, workspaces: &[String])

Print workspace discovery with better formatting

Source

pub fn workspace_processing(&self, workspace: &str, _var_files_count: usize)

Print workspace processing status with better formatting

Source

pub fn workspace_skip(&self, workspace: &str, reason: &str)

Print workspace skip status

Source

pub fn parallel_processing_start(&self, worker_count: usize)

Print parallel processing start with better formatting

Source

pub fn operation_status( &self, operation: &str, workspace: Option<&str>, _var_files_count: usize, )

Print operation status with better formatting

Source

pub fn operation_completion( &self, module: &str, workspace: Option<&str>, success: bool, )

Print operation completion with better formatting

Source

pub fn processing_summary( &self, total_modules: usize, successful_modules: usize, failed_modules: usize, )

Print processing summary with better organization

Source

pub fn module_init_status(&self, success: bool)

Print module initialization status (simplified)

Source

pub fn changes_detected(&self, count: usize, modules: &[String])

Print change detection results with enhanced styling

Source

pub fn pipeline_info(&self, pr_number: &str, base: &str, head: &str)

Print pipeline detection info with enhanced styling

Source

pub fn step(&self, step: usize, total: usize, description: &str)

Print a step indicator for multi-step processes

Source

pub fn config_summary(&self, settings: &[(&str, &str)])

Print a configuration summary

Source

pub fn results_summary(&self, title: &str, stats: &[(&str, &str)])

Print a results summary with statistics

Source

pub fn warning_box(&self, title: &str, message: &str)

Print a warning box for important notices

Source

pub fn error_box(&self, title: &str, message: &str)

Print an error box for detailed error information

Source

pub fn success_box(&self, title: &str, message: &str)

Print a success box for completion messages

Source

pub fn git_changes_progress( &self, commit_range: &str, changed_count: usize, total_files: &[String], )

Print git change detection progress in a cleaner way

Source

pub fn changed_files_summary(&self, files: &[String])

Print changed files in a beautiful, organized way

Source

pub fn git_analysis_summary( &self, total_commits: usize, total_changes: usize, modules_found: usize, )

Print a summary of git analysis

Source

pub fn module_discovery(&self, count: usize, path: &str)

Print module discovery progress

Source

pub fn dependency_graph_progress(&self, stage: &str)

Print dependency graph building progress

Source

pub fn environment_detection(&self, env_type: &str, details: &str)

Print environment detection

Source

pub fn config_validation_warnings(&self, warnings: &[String])

Print configuration validation warnings in a cleaner way

Source

pub fn config_loading(&self, config_path: &str)

Print configuration loading status

Source

pub fn config_validation_summary( &self, warning_count: usize, error_count: usize, )

Print configuration validation summary

Source

pub fn error_summary( &self, title: &str, failed_count: usize, total_count: usize, )

Print a concise error summary for failed operations

Trait Implementations§

Source§

impl Default for Logger

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.