Class LogUtil


  • public class LogUtil
    extends Object
    LOG utility class.
    Since:
    2.0.0
    Author:
    Lijun Liao (xipki)
    • Method Detail

      • logSystemInfo

        public static void logSystemInfo​(org.slf4j.Logger log)
      • error

        public static void error​(org.slf4j.Logger log,
                                 Throwable th)
      • error

        public static void error​(org.slf4j.Logger log,
                                 Throwable th,
                                 String msg)
      • warn

        public static void warn​(org.slf4j.Logger log,
                                Throwable th)
      • warn

        public static void warn​(org.slf4j.Logger log,
                                Throwable th,
                                String msg)
      • 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)