Sprint class

Printing API that allows for simple printing of messages.

Constructors

Sprint(String module, {Level minimumLogLevel = Level.debug, bool includeTimestamp = false, bool quietMode = false})
Create an instance of Sprint, indicated as managing logs for module.

Properties

hashCode int
The hash code for this object.
no setterinherited
includeTimestamp bool
If set to true, timestamps will be included with the printed message.
getter/setter pairinherited
log LogFunction
Prints a message to the web console or to the terminal.
latefinalinherited
minimumLogLevel ↔ Level
Specifies the minimum severity of messages to log.
getter/setter pairinherited
module String
Name of the module this instance of Sprint is being used for logging messages about.
finalinherited
quietMode bool
If set to true, no messages will be displayed.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp String
Obtains a timestamp if includeTimestamp is true.
no setterinherited

Methods

call(dynamic message) → void
A call on the instance itself is synonymous with an info() call.
inherited
d(dynamic message) → void
Alias for debug().
inherited
debug(dynamic message) → void
Prints a debug message.
inherited
f(dynamic message) → void
Alias for fatal().
inherited
fatal(dynamic message) → void
Prints a fatal message.
inherited
format(dynamic message) String
Formats a message with a timestamp and the owner of the Sprint instance.
inherited
i(dynamic message) → void
Alias for info().
inherited
info(dynamic message) → void
Prints an informational message.
inherited
information(dynamic message) → void
Alias for info().
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
s(dynamic message) → void
Alias for success().
inherited
severe(dynamic message) → void
Prints a severe message.
inherited
success(dynamic message) → void
Prints a success message.
inherited
sv(dynamic message) → void
Alias for severe().
inherited
toString() String
A string representation of this object.
inherited
w(dynamic message) → void
Alias for warn().
inherited
warn(dynamic message) → void
Prints a warning message.
inherited
warning(dynamic message) → void
Alias for warn().
inherited

Operators

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