Class Logger


  • public class Logger
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Logger.Colors  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.Boolean display_timestamp  
    • Constructor Summary

      Constructors 
      Constructor Description
      Logger()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void agent​(java.lang.String id)  
      static void blingblingPower()  
      static void colorPrint​(Logger.Colors c, java.lang.String msg)  
      static void colorPrintLn​(Logger.Colors c, java.lang.String msg)  
      static void cr()  
      static void debug​(java.lang.String msg)  
      static void demo​(java.lang.String string, com.hp.hpl.jena.rdf.model.Statement stmt)  
      static void demo​(java.lang.String label, java.lang.String value, boolean ok)  
      static <E extends com.hp.hpl.jena.rdf.model.Statement>
      void
      demo​(java.lang.String string, java.util.Set<E> stmts)  
      static void demo​(java.lang.String string, PartialStatement stmt)  
      static <E extends com.hp.hpl.jena.rdf.model.RDFNode>
      void
      demo_nodes​(java.lang.String string, java.util.Set<E> nodes)  
      static java.lang.String GetTimestamp()  
      static void info​(java.lang.String msg)  
      static void log​(java.lang.String msg)
      Outputs server standard messages.
      static void log​(java.lang.String msg, boolean withPrefix)
      Outputs server standard messages.
      static void log​(java.lang.String msg, VerboseLevel level)
      Outputs server messages, formatting them according to their importance.
      static void log​(java.lang.String msg, VerboseLevel level, boolean withPrefix)
      Outputs server messages, formatting them according to their importance.
      static boolean verbosityMin​(VerboseLevel level)
      Tests if a given level of verbosity is superior or egal to the current, application-wide, level of verbosity.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • display_timestamp

        public static java.lang.Boolean display_timestamp
    • Constructor Detail

      • Logger

        public Logger()
    • Method Detail

      • GetTimestamp

        public static java.lang.String GetTimestamp()
      • log

        public static void log​(java.lang.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(String, VerboseLevel)
      • log

        public static void log​(java.lang.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:
        The list of verbosity levels.
      • log

        public static void log​(java.lang.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:
        The list of verbosity levels.
      • 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,
                                      java.lang.String msg)
      • colorPrintLn

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

        public static void blingblingPower()
      • info

        public static void info​(java.lang.String msg)
      • debug

        public static void debug​(java.lang.String msg)
      • demo

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

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

        public static void demo​(java.lang.String string,
                                PartialStatement stmt)
      • demo

        public static void demo​(java.lang.String label,
                                java.lang.String value,
                                boolean ok)
      • demo_nodes

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

        public static void agent​(java.lang.String id)