Class LogThemes

java.lang.Object
com.tnsai.quality.observability.theme.LogThemes

public final class LogThemes extends Object
Built-in log themes for fun developer experience.

Available Themes

  • STAR_WARS - May the logs be with you
  • LOTR - One log to rule them all
  • MATRIX - Follow the white rabbit
  • PIRATE - Arrr, logging ahead!
  • TURKISH - Turkish themed messages
  • EMOJI - Modern emoji style
  • DEFAULT - Standard professional logging

Usage


 // Get theme by name
 LogTheme theme = LogThemes.get("starwars");

 // Use predefined constant
 LogTheme theme = LogThemes.STAR_WARS;

 // Register custom theme
 LogThemes.register(myCustomTheme);
 
Author:
TnsAI Team
  • Field Details

    • DEFAULT

      public static final LogTheme DEFAULT
      Default professional logging (no theme).
    • STAR_WARS

      public static final LogTheme STAR_WARS
      Star Wars themed logging.
    • LOTR

      public static final LogTheme LOTR
      Lord of the Rings themed logging.
    • MATRIX

      public static final LogTheme MATRIX
      Matrix themed logging.
    • PIRATE

      public static final LogTheme PIRATE
      Pirate themed logging.
    • TURKISH

      public static final LogTheme TURKISH
      Turkish themed logging.
    • EMOJI

      public static final LogTheme EMOJI
      Modern emoji themed logging.
  • Method Details

    • get

      public static LogTheme get(String name)
      Gets a theme by name.
      Parameters:
      name - theme name (case-insensitive)
      Returns:
      the theme, or DEFAULT if not found
    • register

      public static void register(LogTheme theme)
      Registers a custom theme.
      Parameters:
      theme - the theme to register
    • listThemes

      public static String[] listThemes()
      Lists all registered theme names.
      Returns:
      array of theme names
    • hasTheme

      public static boolean hasTheme(String name)
      Checks if a theme is registered.
      Parameters:
      name - theme name
      Returns:
      true if theme exists