NyLogger class
Logger used for messages you want to print to the console.
Constructors
- NyLogger()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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 Methods
-
debug(
dynamic message, {bool alwaysPrint = false}) → dynamic -
Logs a debug
message
to the console. It will only print if your app's environment is in debug mode. You can override this by settingalwaysPrint
= true. -
dump(
dynamic message, String? tag, {bool alwaysPrint = false}) → dynamic -
Dumps a
message
with a tag. -
error(
dynamic message, {bool alwaysPrint = false}) → dynamic -
Logs an error
message
to the console. It will only print if your app's environment is in debug mode. You can override this by settingalwaysPrint
= true. -
info(
dynamic message, {bool alwaysPrint = false}) → dynamic -
Log an info
message
to the console. It will only print if your app's environment is in debug mode. You can override this by settingalwaysPrint
= true. -
json(
dynamic message, {bool alwaysPrint = false}) → dynamic -
Log json data
message
to the console. It will only print if your app's environment is in debug mode. You can override this by settingalwaysPrint
= true.