Package arc.util

Class Logger

java.lang.Object
arc.util.Logger

public class Logger extends Object
Logger with topics.
  • Field Details

  • Constructor Details

    • Logger

      public Logger()
    • Logger

      public Logger(Class<?> clazz)
      Uses the capitalized class name (without package) as a topic.
    • Logger

      public Logger(Class<?>... classes)
      Uses the capitalized class name (without package) for the first class, and the fully qualified class name for others.
    • Logger

      public Logger(String topic)
    • Logger

      public Logger(String... topics)
  • Method Details

    • getTopics

      public String[] getTopics()
      Commonly the first topic is a main and second is a thing related. null if no topics.
      Returns:
      a copy of topics.
    • addTopic

      public void addTopic(String topic)
      Ignores if topic is empty and trim spaces.
    • setTopics

      public void setTopics(String[] topics)
      Ignores empty topics.
    • log

      public void log(Log.LogLevel level, String text, Throwable th, Object... args)
    • log

      public void log(Log.LogLevel level, String text, Object... args)
    • log

      public void log(Log.LogLevel level, String text)
    • debug

      public void debug(String text, Object... args)
    • debug

      public void debug(String text)
    • debug

      public void debug(Object object)
    • info

      public void info(String text, Object... args)
    • info

      public void info(String text)
    • info

      public void info(Object object)
    • warn

      public void warn(String text, Object... args)
    • warn

      public void warn(String text)
    • warn

      public void warn(Object object)
    • err

      public void err(String text, Throwable th, Object... args)
    • err

      public void err(String text, Object... args)
    • err

      public void err(String text, Throwable th)
    • err

      public void err(String text)
    • err

      public void err(Object object)
    • err

      public void err(Throwable th)
    • ln

      public void ln()
      Log an empty info line.