LogConfig class final
Configuration class that controls the appearance and content of log output.
Used by various log printers to determine which pieces of information should be included and how they should be formatted.
Constructors
-
LogConfig({bool showTimestamp = true, bool showTimeOnly = true, bool showDateOnly = true, bool showLevel = true, bool showTag = true, bool showThread = true, bool useHumanReadableTime = true, bool showEmoji = true, bool showLocation = true, List<
LogStep> ? steps}) - Creates a new LogConfig with custom display options.
Properties
- hashCode β int
-
The hash code for this object.
no setterinherited
- runtimeType β Type
-
A representation of the runtime type of the object.
no setterinherited
- showDateOnly β bool
-
Whether to show only the date portion of the timestamp.
final
- showEmoji β bool
-
Whether to include emojis representing the log level (e.g., π’, π΄).
final
- showLevel β bool
-
Whether to include the log level (e.g., INFO, ERROR) in the output.
final
- showLocation β bool
-
Whether to show the location of the log call (e.g., file/line).
final
- showTag β bool
-
Whether to include the logger name or tag in the output.
final
- showThread β bool
-
Whether to include the thread or isolate identifier.
final
- showTimeOnly β bool
-
Whether to show only the time portion of the timestamp.
final
- showTimestamp β bool
-
Whether to show the full timestamp (date and time) in the log output.
final
-
steps
β List<
LogStep> -
The ordered list of log steps that define how a log message is composed.
final
- useHumanReadableTime β bool
-
Whether to display timestamps in a human-readable format
(e.g.,
Jun 23, 2025 14:58:22
) instead of ISO 8601.final
Methods
-
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