Class AppLog

java.lang.Object
org.emrick.project.dev.AppLog

public final class AppLog extends Object
Keeps a copy of everything Emrick Designer prints to System.out / System.err since launch, so the Developer Mode terminal can show it. Output still goes to the console as before. Kept in memory only (bounded), never written to disk unless the user saves it from the terminal.
  • Field Details

  • Constructor Details

    • AppLog

      private AppLog()
  • Method Details

    • install

      public static void install()
      Starts capturing. Call once, as early as possible in main().
    • snapshot

      public static List<AppLog.Entry> snapshot()
      Returns:
      every line captured so far, oldest first
    • addListener

      public static void addListener(Consumer<AppLog.Entry> listener)
    • removeListener

      public static void removeListener(Consumer<AppLog.Entry> listener)
    • append

      private static void append(String text, boolean error)