Class SysErrLogger


  • public class SysErrLogger
    extends java.lang.Object
    Utility class to be used only in classes where VitamLogger is not allowed
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static SysErrLogger FAKE_LOGGER
      FAKE LOGGER used where no LOG could be done
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void ignoreLog​(java.lang.Throwable throwable)
      Utility method to log nothing Used only in classes where VitamLogger is not allowed
      void syserr()
      Utility method to log through System.err the current Stacktrace Used only in classes where VitamLogger is not allowed
      void syserr​(java.lang.String message)
      Utility method to log through System.err Used only in classes where VitamLogger is not allowed
      void syserr​(java.lang.String message, java.lang.Throwable e)
      Utility method to log through System.err the current Stacktrace Used only in classes where VitamLogger is not allowed
      • Methods inherited from class java.lang.Object

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

      • FAKE_LOGGER

        public static final SysErrLogger FAKE_LOGGER
        FAKE LOGGER used where no LOG could be done
    • Method Detail

      • ignoreLog

        public void ignoreLog​(java.lang.Throwable throwable)
        Utility method to log nothing Used only in classes where VitamLogger is not allowed
        Parameters:
        throwable - to log ignore
      • syserr

        public void syserr​(java.lang.String message)
        Utility method to log through System.err Used only in classes where VitamLogger is not allowed
        Parameters:
        message - to write for error
      • syserr

        public void syserr()
        Utility method to log through System.err the current Stacktrace Used only in classes where VitamLogger is not allowed
      • syserr

        public void syserr​(java.lang.String message,
                           java.lang.Throwable e)
        Utility method to log through System.err the current Stacktrace Used only in classes where VitamLogger is not allowed
        Parameters:
        message - to write for error
        e - throw to write as error