Class Log

java.lang.Object
org.wildstang.framework.logger.Log

public class Log extends Object
Static class wrapping System.out/err logging functions for nicer and controlled output. The level controls which log functions work the higher the set level, the fewers logs. Lowest to highest: info, warn, error, none.
  • Constructor Details

    • Log

      public Log()
  • Method Details

    • info

      public static void info(String msg)
      Log at level "info". This is meant for normal messages that mean no alarm.
      Parameters:
      msg - Log message text.
    • warn

      public static void warn(String msg)
      Log at level "warn". This is meant for warning messages that mean something is approaching problematic.
      Parameters:
      msg - Log message text.
    • error

      public static void error(String msg)
      Log at level "error". This is meant for error messages that mean something went wrong and require attention.
      Parameters:
      msg - Log message text.
    • danger

      public static void danger(String msg)
      Log no matter what. This is meant for messages that mean the robot has entered a potentially dangerous state. E.g. The robot entering autonomous mode.
      Parameters:
      msg - Log message text.
    • setLevel

      public static void setLevel(Log.LogLevel level)
      Sets the minimum LogLevel to log at.
      Parameters:
      level - Lowest case at which it should log.