LoggerTemplate class

Constructors

LoggerTemplate(LoggerParameters parameters)

Properties

hashCode int
The hash code for this object.
no setterinherited
parameters LoggerParameters
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addFillCaractere({required String primaryText, String fill = ' ', String? secondaryText, LoggerAlignmentState? alignment}) List<String>
Adds fill characters to a string to match a maximum length, depending on the primary and secondary text and alignment. If the secondary text is not specified, it is set to an empty string.
createInitDescription() → void
Prints the initial description of the logger box with centered alignment.
createInitTitle() → void
Prints a fancy ASCII art title with centered alignment
createLine({required String primaryMessage, String primaryColor = "", String secondaryMessage = "", String secondaryColor = "", LoggerAlignmentState? alignment, String fill = ' '}) String
Creates a formatted line with primary and/or secondary messages and colors, aligned based on the specified alignment. The line is filled with the specified character between the messages and the left/right sides of the line.
lineStructure({required String spaceLeft, required String spaceCenter, required String spaceRight, String primaryText = '', String? primaryColor = '', String? secondaryText = '', String? secondaryColor = ''}) String
Builds a line structure with the specified spaces and text, and optional primary and secondary colors.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
splitObjectIfTooLong({required String object, String subMessage = ''}) List<String>
Splits a given object into multiple lines of maximum parameters.maxLength characters, optionally adding a subMessage at the beginning of each line.
templateBox({required LoggerTypeState type, LoggerChannelState? channel, required String message, required StackTrace stack, List<String>? tags}) → void
Creates a log box with a header, body message, and footer.
templateDebug({required LoggerTypeState type, LoggerChannelState? channel, String? message, required dynamic object, required StackTrace stack}) → void
Creates a log box with debug information, including the type and value of an object, and a message (if provided).
toString() String
A string representation of this object.
inherited

Operators

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