PusherChannelsPackageLogger class abstract

An abstract singleton that logs different events of this package.

The loggins is disabled by default.

This package's internal members use the log to log the events. It is possible to pass the custom handler accepting the logs of type String via the enableLogs method (which implicitly enables loggins).

The logs may be disabled by the disableLogs method.


hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Methods

disableLogs() → void
Disables logs.
enableLogs({LogHandler? handler}) → void
Enables logs. If the custom handler is not provided - then print function will be used.
log(Object? object) → void
An internal API to log objects