Package com.pixelservices.flash.utils
Class PrettyLogger
java.lang.Object
com.pixelservices.flash.utils.PrettyLogger
PrettyLogger is a utility class for logging messages with support for hex colors and emojis.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
Logs a message with optional hex color codes and emojis.static void
Logs a message with optional hex color codes and emojis.static void
Logs a message with an emoji and optional hex color codes.static void
Logs a message with an emoji and optional hex color codes.
-
Field Details
-
logger
public static com.pixelservices.logger.Logger logger
-
-
Constructor Details
-
PrettyLogger
public PrettyLogger()
-
-
Method Details
-
log
Logs a message with optional hex color codes and emojis.- Parameters:
message
- the message to log, with optional"<#RRGGBB>"
for colors and emojis
-
warn
Logs a message with optional hex color codes and emojis.- Parameters:
message
- the message to log, with optional"<#RRGGBB>"
for colors and emojis
-
error
-
withEmoji
Logs a message with an emoji and optional hex color codes.- Parameters:
message
- the message to logemoji
- the emoji to prepend to the messagelogType
- the type of log
-
withEmoji
Logs a message with an emoji and optional hex color codes.- Parameters:
message
- the message to logemoji
- the emoji to prepend to the message
-