LogLevel class

LogLevel. You can implement your own log level for filtering.

Constructors

LogLevel.new({required String name, required int value, AnsiFontColor fontColor = AnsiFontColor.none, AnsiBackgroundColor backgroundColor = AnsiBackgroundColor.none, String symbol = ''})
const

Properties

backgroundColor AnsiBackgroundColor
final
fontColor AnsiFontColor
Log message color
final
hashCode int
The hash code for this object.
no setterinherited
name String
Logging level name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String
Log level
final
value int
Logging level value. This will be used for filtering the log.
final

Methods

copyWith({String? name, int? value, AnsiFontColor? fontColor, AnsiBackgroundColor? backgroundColor, String? symbol}) LogLevel
Generates the copied object of LogLevel.
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 <(covariant LogLevel ol) bool
operator <=(covariant LogLevel ol) bool
operator ==(Object other) bool
The equality operator.
inherited
operator >(covariant LogLevel ol) bool
operator >=(covariant LogLevel ol) bool