Class Logger

java.lang.Object
laas.openrobots.ontology.helpers.Logger

public class Logger extends Object
  • Field Details

    • display_timestamp

      public static Boolean display_timestamp
  • Constructor Details

    • Logger

      public Logger()
  • Method Details

    • GetTimestamp

      public static String GetTimestamp()
    • log

      public static void log(String msg)
      Outputs server standard messages. Calls log(String, VerboseLevel) with a VerboseLevel.INFO level of verbosity.
      Parameters:
      msg - The message to display.
      See Also:
    • log

      public static void log(String msg, boolean withPrefix)
      Outputs server standard messages. Calls log(String, VerboseLevel, boolean) with a VerboseLevel.INFO level of verbosity.
      Parameters:
      msg - The message to display.
      withPrefix - Set it to false when a looging info is expected to continue the last line of log and you don't want a prefix (like the date) to be added.
      See Also:
    • log

      public static void log(String msg, VerboseLevel level)
      Outputs server messages, formatting them according to their importance.
      Parameters:
      msg - The message to display.
      level - The level of importance of the message.
      See Also:
    • log

      public static void log(String msg, VerboseLevel level, boolean withPrefix)
      Outputs server messages, formatting them according to their importance.
      Parameters:
      msg - The message to display.
      level - The level of importance of the message.
      withPrefix - Set it to false when a looging info is expected to continue the last line of log and you don't want a prefix (like the date) to be added.
      See Also:
    • verbosityMin

      public static boolean verbosityMin(VerboseLevel level)
      Tests if a given level of verbosity is superior or egal to the current, application-wide, level of verbosity.
      Parameters:
      level - A level of verbosity
      Returns:
      true if the server is configured to be at least as verbose as the given level of verbosity.
    • cr

      public static void cr()
    • colorPrint

      public static void colorPrint(Logger.Colors c, String msg)
    • colorPrintLn

      public static void colorPrintLn(Logger.Colors c, String msg)
    • blingblingPower

      public static void blingblingPower()
    • info

      public static void info(String msg)
    • debug

      public static void debug(String msg)
    • demo

      public static <E extends com.hp.hpl.jena.rdf.model.Statement> void demo(String string, Set<E> stmts)
    • demo

      public static void demo(String string, com.hp.hpl.jena.rdf.model.Statement stmt)
    • demo

      public static void demo(String string, PartialStatement stmt)
    • demo

      public static void demo(String label, String value, boolean ok)
    • demo_nodes

      public static <E extends com.hp.hpl.jena.rdf.model.RDFNode> void demo_nodes(String string, Set<E> nodes)
    • agent

      public static void agent(String id)