Class LogThemes
java.lang.Object
com.tnsai.quality.observability.theme.LogThemes
Built-in log themes for fun developer experience.
Available Themes
STAR_WARS- May the logs be with youLOTR- One log to rule them allMATRIX- Follow the white rabbitPIRATE- Arrr, logging ahead!TURKISH- Turkish themed messagesEMOJI- Modern emoji styleDEFAULT- 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final LogThemeDefault professional logging (no theme).static final LogThemeModern emoji themed logging.static final LogThemeLord of the Rings themed logging.static final LogThemeMatrix themed logging.static final LogThemePirate themed logging.static final LogThemeStar Wars themed logging.static final LogThemeTurkish themed logging. -
Method Summary
-
Field Details
-
DEFAULT
Default professional logging (no theme). -
STAR_WARS
Star Wars themed logging. -
LOTR
Lord of the Rings themed logging. -
MATRIX
Matrix themed logging. -
PIRATE
Pirate themed logging. -
TURKISH
Turkish themed logging. -
EMOJI
Modern emoji themed logging.
-
-
Method Details
-
get
Gets a theme by name.- Parameters:
name- theme name (case-insensitive)- Returns:
- the theme, or DEFAULT if not found
-
register
Registers a custom theme.- Parameters:
theme- the theme to register
-
listThemes
Lists all registered theme names.- Returns:
- array of theme names
-
hasTheme
Checks if a theme is registered.- Parameters:
name- theme name- Returns:
- true if theme exists
-