Class PrettyLogger

java.lang.Object
com.pixelservices.flash.utils.PrettyLogger

public class PrettyLogger extends Object
PrettyLogger is a utility class for logging messages with support for hex colors and emojis.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static com.pixelservices.logger.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    error(String message)
     
    static void
    log(String message)
    Logs a message with optional hex color codes and emojis.
    static void
    warn(String message)
    Logs a message with optional hex color codes and emojis.
    static void
    withEmoji(String message, String emoji)
    Logs a message with an emoji and optional hex color codes.
    static void
    withEmoji(String message, String emoji, LogType logType)
    Logs a message with an emoji and optional hex color codes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      public static com.pixelservices.logger.Logger logger
  • Constructor Details

    • PrettyLogger

      public PrettyLogger()
  • Method Details

    • log

      public static void log(String message)
      Logs a message with optional hex color codes and emojis.
      Parameters:
      message - the message to log, with optional "<#RRGGBB>" for colors and emojis
    • warn

      public static void warn(String message)
      Logs a message with optional hex color codes and emojis.
      Parameters:
      message - the message to log, with optional "<#RRGGBB>" for colors and emojis
    • error

      public static void error(String message)
    • withEmoji

      public static void withEmoji(String message, String emoji, LogType logType)
      Logs a message with an emoji and optional hex color codes.
      Parameters:
      message - the message to log
      emoji - the emoji to prepend to the message
      logType - the type of log
    • withEmoji

      public static void withEmoji(String message, String emoji)
      Logs a message with an emoji and optional hex color codes.
      Parameters:
      message - the message to log
      emoji - the emoji to prepend to the message