com.ibm.tivoli.maximo.skd.util

Class Log

  • java.lang.Object
    • com.ibm.tivoli.maximo.skd.util.Log


  • public class Log
    extends java.lang.Object
    Simple logging abstraction for Scheduler UI/App that allows for SLF4J logging type messages, ie, you provide a message with {} placeholders and they are substituted at run time. This has the added benefit of NOT incurring string catentation UNLESS the logging is enabled. It also makes the code much more readable, since, we don't need to litter it with isXXXEnabled() calls.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int DEBUG 
      static int ERROR 
      static int INFO 
      static MXLogger log 
      static int WARN 
    • Constructor Summary

      Constructors 
      Constructor and Description
      Log() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void debug(java.lang.String msg, java.lang.Object[] args) 
      static void error(java.lang.String string, java.lang.Throwable e) 
      static void info(java.lang.String msg, java.lang.Object[] args) 
      static boolean isDebug() 
      static boolean isError() 
      static boolean isInfo() 
      static boolean isWarn() 
      static void printf(int level, java.lang.String msg, java.lang.Object[] args) 
      static void printf(java.lang.String msg, java.lang.Object[] args) 
      static void warn(java.lang.String msg, java.lang.Object[] args) 
      • Methods inherited from class java.lang.Object

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

      • Log

        public Log()
    • Method Detail

      • debug

        public static final void debug(java.lang.String msg,
                                       java.lang.Object[] args)
      • warn

        public static final void warn(java.lang.String msg,
                                      java.lang.Object[] args)
      • info

        public static final void info(java.lang.String msg,
                                      java.lang.Object[] args)
      • error

        public static void error(java.lang.String string,
                                 java.lang.Throwable e)
      • printf

        public static void printf(java.lang.String msg,
                                  java.lang.Object[] args)
      • printf

        public static void printf(int level,
                                  java.lang.String msg,
                                  java.lang.Object[] args)
      • isDebug

        public static boolean isDebug()
      • isInfo

        public static boolean isInfo()
      • isWarn

        public static boolean isWarn()
      • isError

        public static boolean isError()