MqttLogger class Null safety

Library wide logging class

Constructors

MqttLogger()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

clientId int
Unique per client identifier
read / write
loggingOn bool
Log or not
read / write
testMode bool
Test mode
read / write
testOutput String
Test output
read / write

Static Methods

log(String message, [dynamic optimise = false]) → void
Log method If the optimise parameter is supplied it must have a toString method, this allows large objects such as lots of payload data not to be converted into a string in the message parameter if logging is not enabled.