Package org.xipki.util
Class LogUtil
- java.lang.Object
-
- org.xipki.util.LogUtil
-
public class LogUtil extends Object
LOG utility class.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringbase64Encode(byte[] bytes)static voiderror(org.slf4j.Logger log, Throwable th)static voiderror(org.slf4j.Logger log, Throwable th, String msg)static StringformatCsn(BigInteger serialNumber)Formats certificate serial number.static voidlogSystemInfo(org.slf4j.Logger log)static voidwarn(org.slf4j.Logger log, Throwable th)static voidwarn(org.slf4j.Logger log, Throwable th, String msg)
-
-
-
Method Detail
-
logSystemInfo
public static void logSystemInfo(org.slf4j.Logger log)
-
error
public static void error(org.slf4j.Logger log, Throwable th)
-
warn
public static void warn(org.slf4j.Logger log, Throwable th)
-
formatCsn
public static String formatCsn(BigInteger serialNumber)
Formats certificate serial number.- Parameters:
serialNumber- certificate serial number- Returns:
- formatted certificate serial number
-
base64Encode
public static String base64Encode(byte[] bytes)
-
-