LoggingConfig class

Annotations

Constructors

LoggingConfig.new({bool enablePrettyLogs = true, bool showEmojis = true, bool showTimestamp = true, bool showColors = true, bool showBorders = true, int lineLength = 120, LogLevel minimumLevel = LogLevel.verbose, bool enabled = true, bool enableDevToolsJson = false, Map<LogType, LogTypeConfig> logTypeConfigs = const {}})
const
LoggingConfig.development()
factory
LoggingConfig.production()
factory

Properties

enabled bool
final
enableDevToolsJson bool
final
enablePrettyLogs bool
final
formatter PrettyLogFormatter
no setter
hashCode int
The hash code for this object.
no setteroverride
lineLength int
final
logTypeConfigs Map<LogType, LogTypeConfig>
final
minimumLevel LogLevel
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showBorders bool
final
showColors bool
final
showEmojis bool
final
showTimestamp bool
final

Methods

copyWith({bool? enablePrettyLogs, bool? showEmojis, bool? showTimestamp, bool? showColors, bool? showBorders, int? lineLength, LogLevel? minimumLevel, bool? enabled, bool? enableDevToolsJson, Map<LogType, LogTypeConfig>? logTypeConfigs}) LoggingConfig
getConfigForCategory(String? category) LogTypeConfig
getConfigForType(LogType type) LogTypeConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withLogTypeConfig(LogType type, LogTypeConfig config) LoggingConfig

Operators

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

Static Methods

mapCategoryToLogType(String? category) LogType