Class Log


  • public class Log
    extends java.lang.Object
    Logging utility functions.
    • Constructor Summary

      Constructors 
      Constructor Description
      Log()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void debug​(java.lang.String msg)
      Send debug log.
      static void debug​(java.lang.String msg, java.lang.Object detail)
      Send the msg as DEBUG log and detail as JSON.
      static void debugF​(java.lang.String format, java.lang.Object... args)
      Send debug log.
      static void errorEx​(java.lang.Exception ex)
      Send exception ERROR log.
      static void info​(java.lang.String msg)
      Send msg as INFO log.
      static void info​(java.lang.String msg, java.lang.Object detail)
      Send msg as INFO log and detail in JSON format.
      static void infoB​(java.lang.String msg, java.lang.Object detail)
      Send msg as INFO log and detail as a Java bean.
      static void infoF​(java.lang.String format, java.lang.Object... args)
      Send INFO log with format.
      static java.lang.String shorter​(java.lang.String account)
      Return shorter version of the account.
      • 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

      • info

        public static void info​(java.lang.String msg)
        Send msg as INFO log.
        Parameters:
        msg - the debug message.
      • info

        public static void info​(java.lang.String msg,
                                java.lang.Object detail)
        Send msg as INFO log and detail in JSON format.
        Parameters:
        msg - the debug message.
        detail - The additional object to be logged.
      • infoB

        public static void infoB​(java.lang.String msg,
                                 java.lang.Object detail)
        Send msg as INFO log and detail as a Java bean.
        Parameters:
        msg - the debug message.
        detail - The additional object to be logged.
      • infoF

        public static void infoF​(java.lang.String format,
                                 java.lang.Object... args)
        Send INFO log with format.
        Parameters:
        format - The format
        args - The arguments of the format
      • debug

        public static void debug​(java.lang.String msg)
        Send debug log.
        Parameters:
        msg - the debug message.
      • debug

        public static void debug​(java.lang.String msg,
                                 java.lang.Object detail)
        Send the msg as DEBUG log and detail as JSON.
        Parameters:
        msg - the debug message.
        detail - The additional object to be logged.
      • debugF

        public static void debugF​(java.lang.String format,
                                  java.lang.Object... args)
        Send debug log.
        Parameters:
        format - The format
        args - The arguments of the format
      • errorEx

        public static void errorEx​(java.lang.Exception ex)
        Send exception ERROR log.
        Parameters:
        ex - The exception.
      • shorter

        public static java.lang.String shorter​(java.lang.String account)
        Return shorter version of the account.
        Parameters:
        account - The Stellar account Id.
        Returns:
        The shorter version.