TalkerSettings class
This class used for setup Talker configuration
Constructors
-
TalkerSettings({bool enabled = true, bool useHistory = true, bool useConsoleLogs = true, int maxHistoryItems = 1000, Map<
TalkerLogType, String> titles = _defaultTitles, Map<TalkerLogType, AnsiPen> ? colors})
Properties
-
colors
→ Map<
TalkerLogType, AnsiPen> -
Custom Logger Colors.
final
- enabled ↔ bool
-
Use writing talker records in file
The main rule that is responsible
for the operation of the package
All log and handle error / exception methods are working when
true
and not working whenfalse
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- maxHistoryItems → int
-
Max records count in history list
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
titles
→ Map<
TalkerLogType, String> -
Custom Logger Titles.
final
- useConsoleLogs → bool
-
By default talker print all Errors / Exceptions and logs in console.
If
true
- printing in historyfalse
- not printing.no setter - useHistory → bool
-
By default talker write all Errors / Exceptions and logs in history list
(base dart List field in core)
If
true
- writing in history Iffalse
- not writingno setter
Methods
-
copyWith(
{bool? enabled, bool? useHistory, bool? useConsoleLogs, int? maxHistoryItems, Map< TalkerLogType, String> ? titles, Map<TalkerLogType, AnsiPen> ? colors}) → TalkerSettings -
getAnsiPenByLogType(
TalkerLogType key, {TalkerData? logData}) → AnsiPen -
getTitleByLogType(
TalkerLogType key) → String -
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