IStaticFullLogger
trait · ferroui-splat · v0.5.0
trait IStaticFullLogger
A logger for static code: each message ends with the name of the member that wrote it,
message (Member) (IStaticFullLogger).
Upstream fills the name of the member in with [CallerMemberName]; Rust has no counterpart, so
the caller passes it, and None writes message () as a missing name does upstream.
Members
leveldebug_exceptiondebugdebug_with_typedebug_formatinfo_exceptioninfoinfo_with_typeinfo_formatwarn_exceptionwarnwarn_with_typewarn_formaterror_exceptionerrorerror_with_typeerror_formatfatal_exceptionfatalfatal_with_typefatal_formatwritewrite_exceptionwrite_with_typewrite_exception_with_type
level
fn level(self: &Self) -> LogLevel
The level from which the logger writes (Level).
debug_exception
fn debug_exception(self: &Self, exception: &dyn Error, message: &str, caller_member_name: Option<&str>)
Writes exception with message at the level Debug (Debug(Exception, string, string?)).
debug
fn debug(self: &Self, message: &str, caller_member_name: Option<&str>)
Writes message at the level Debug (Debug(string, string?)).
debug_with_type
fn debug_with_type(self: &Self, type_name: &'static str, message: &str, caller_member_name: Option<&str>)
Writes message of the type type_name at the level Debug (Debug<T>(string, string?)).
debug_format
fn debug_format(self: &Self, args: fmt::Arguments<'_>, caller_member_name: Option<&str>)
Writes the message args at the level Debug
(Debug<TArgument...>(IFormatProvider, string, TArgument..., string?)).
info_exception
fn info_exception(self: &Self, exception: &dyn Error, message: &str, caller_member_name: Option<&str>)
Writes exception with message at the level Info (Info(Exception, string, string?)).
info
fn info(self: &Self, message: &str, caller_member_name: Option<&str>)
Writes message at the level Info (Info(string, string?)).
info_with_type
fn info_with_type(self: &Self, type_name: &'static str, message: &str, caller_member_name: Option<&str>)
Writes message of the type type_name at the level Info (Info<T>(string, string?)).
info_format
fn info_format(self: &Self, args: fmt::Arguments<'_>, caller_member_name: Option<&str>)
Writes the message args at the level Info
(Info<TArgument...>(IFormatProvider, string, TArgument..., string?)).
warn_exception
fn warn_exception(self: &Self, exception: &dyn Error, message: &str, caller_member_name: Option<&str>)
Writes exception with message at the level Warn (Warn(Exception, string, string?)).
warn
fn warn(self: &Self, message: &str, caller_member_name: Option<&str>)
Writes message at the level Warn (Warn(string, string?)).
warn_with_type
fn warn_with_type(self: &Self, type_name: &'static str, message: &str, caller_member_name: Option<&str>)
Writes message of the type type_name at the level Warn (Warn<T>(string, string?)).
warn_format
fn warn_format(self: &Self, args: fmt::Arguments<'_>, caller_member_name: Option<&str>)
Writes the message args at the level Warn
(Warn<TArgument...>(IFormatProvider, string, TArgument..., string?)).
error_exception
fn error_exception(self: &Self, exception: &dyn Error, message: &str, caller_member_name: Option<&str>)
Writes exception with message at the level Error (Error(Exception, string, string?)).
error
fn error(self: &Self, message: &str, caller_member_name: Option<&str>)
Writes message at the level Error (Error(string, string?)).
error_with_type
fn error_with_type(self: &Self, type_name: &'static str, message: &str, caller_member_name: Option<&str>)
Writes message of the type type_name at the level Error (Error<T>(string, string?)).
error_format
fn error_format(self: &Self, args: fmt::Arguments<'_>, caller_member_name: Option<&str>)
Writes the message args at the level Error
(Error<TArgument...>(IFormatProvider, string, TArgument..., string?)).
fatal_exception
fn fatal_exception(self: &Self, exception: &dyn Error, message: &str, caller_member_name: Option<&str>)
Writes exception with message at the level Fatal (Fatal(Exception, string, string?)).
fatal
fn fatal(self: &Self, message: &str, caller_member_name: Option<&str>)
Writes message at the level Fatal (Fatal(string, string?)).
fatal_with_type
fn fatal_with_type(self: &Self, type_name: &'static str, message: &str, caller_member_name: Option<&str>)
Writes message of the type type_name at the level Fatal (Fatal<T>(string, string?)).
fatal_format
fn fatal_format(self: &Self, args: fmt::Arguments<'_>, caller_member_name: Option<&str>)
Writes the message args at the level Fatal
(Fatal<TArgument...>(IFormatProvider, string, TArgument..., string?)).
write
fn write(self: &Self, message: &str, log_level: LogLevel, caller_member_name: Option<&str>)
Writes message at log_level (Write(string, LogLevel, string?)).
write_exception
fn write_exception(self: &Self, exception: &dyn Error, message: &str, log_level: LogLevel, caller_member_name: Option<&str>)
Writes exception with message at log_level (Write(Exception, string, LogLevel, string?)).
write_with_type
fn write_with_type(self: &Self, message: &str, type_name: &'static str, log_level: LogLevel, caller_member_name: Option<&str>)
Writes message of the type type_name at log_level (Write(string, Type, LogLevel, string?)).
write_exception_with_type
fn write_exception_with_type(self: &Self, exception: &dyn Error, message: &str, type_name: &'static str, log_level: LogLevel, caller_member_name: Option<&str>)
Writes exception with message, of the type type_name, at log_level
(Write(Exception, string, Type, LogLevel, string?)).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.