Skip to main content

Logging System

HookUI includes a sophisticated logging wrapper HookUILogger that keeps your console clean.

Configuration

Go to Tools > HookUI > Dashboard > Settings. You will see a mask selection field called Debug Channels.

  • None: Silence.
  • Core: Initialization and critical errors.
  • Navigation: Screen transitions (Show/Hide).
  • Interaction: Button clicks and hovers.
  • Hooks: Signal events.
  • Prompts: Popup system events.
  • Data: Database loading and modifications.
  • All: Everything (Noisy!).

API Usage

You can use the logger in your own extensions of HookUI.

using JsonProductions.HookUI.Runtime;

// Log to a specific channel
HookUILogger.Log(HookUILogChannel.Interaction, "Player clicked the custom thing", this);

// Log a warning (always visible usually, but formatted)
HookUILogger.LogWarning("Something smells fishy...", this);

Colors

The logger automatically color-codes messages by channel:

  • Navigation: Green
  • Hooks: Magenta
  • Interaction: Cyan
  • Data: Orange