LogRecord class
One log record emitted by zenoh's own runtime, delivered to a host sink.
⚠️ Two fields, and that is not a simplification. Zenoh's Rust logger carries a target, a file, a line, a thread and a tracing span; zenoh-c's callback signature drops all of them and passes only the level and the rendered message. Nothing this binding could do would recover them, so a host sink cannot key on target or filter by module. Said here because the obvious assumption — "it is a log record, so it has a target" — is wrong and would be discovered late.
The message is canon's own rendered text. It is not sanitised: see
Zenoh.initLogWithSink for what it can contain.
Constructors
- LogRecord(LogSeverity severity, String message)
-
Creates a record with the given
severityandmessage.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Canon's rendered message text.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → LogSeverity
-
The level canon emitted this record at.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited