Package fr.gouv.vitam.common.logging
Class SysErrLogger
- java.lang.Object
-
- fr.gouv.vitam.common.logging.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 allowedvoid
syserr()
Utility method to log through System.err the current Stacktrace Used only in classes where VitamLogger is not allowedvoid
syserr(java.lang.String message)
Utility method to log through System.err Used only in classes where VitamLogger is not allowedvoid
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
-
-
-
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 errore
- throw to write as error
-
-