LogAction
struct · ferroui-xaml-interactions-custom · v0.5.0
struct LogAction
An action that logs a message to the debug output.
Deviation (DEVIATIONS.md, Behaviors): the reference writes the message to the trace listeners
(Trace.TraceInformation, TraceWarning, TraceError, Debug.WriteLine) and to the console.
The port writes it to the log sink of the framework (Logger, area LogAction, at the level
of level) and to the standard output. The message is formatted as
string.Format(message, argument) does with one argument ({0}, its alignment, {{ and
}}); the format string of the item ({0:N2}) is not applied, the text form of the argument
is used.
Members
TYPEto_refmessage_propertyargument_propertylevel_propertyconstructnewmessageset_messageargumentset_argumentlevelset_level
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<LogAction>
Returns a strong reference to this object.
message_property
fn message_property() -> &'static StyledProperty<Option<String>>
Identifies the Message property.
argument_property
fn argument_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the Argument property.
level_property
fn level_property() -> &'static StyledProperty<LogActionLevel>
Identifies the Level property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
message
fn message(self: &Self) -> Option<String>
Gets or sets the message format string.
set_message
fn set_message(self: &Self, value: Option<String>)
argument
fn argument(self: &Self) -> Option<BoxedValue>
Gets or sets an optional argument to format the message with.
set_argument
fn set_argument(self: &Self, value: Option<BoxedValue>)
level
fn level(self: &Self) -> LogActionLevel
Gets or sets the log level.
set_level
fn set_level(self: &Self, value: LogActionLevel)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<LogAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.