Class Log.LogBuilder

  • Enclosing class:
    Log

    public static class Log.LogBuilder
    extends java.lang.Object
    A class for holding the variables associated with a Log object and creating a new Log object with those variables.
    • Constructor Detail

      • LogBuilder

        public LogBuilder()
    • Method Detail

      • timestamp

        public Log.LogBuilder timestamp​(long timestamp)
        The point in time (ms since UNIX epoch) that the log entry was created.
      • message

        public Log.LogBuilder message​(java.lang.String message)
        The log line itself.
      • attributes

        public Log.LogBuilder attributes​(Attributes attributes)
        Additional attributes associated with the log entry.
      • serviceName

        public Log.LogBuilder serviceName​(java.lang.String serviceName)
        The name of the service which produced this log entry.
      • level

        public Log.LogBuilder level​(java.lang.String logLevel)
        The log level (eg. INFO, DEBUG, etc) for the log entry.
      • build

        public Log build()
        Create the new Log entry.
      • throwable

        public Log.LogBuilder throwable​(java.lang.Throwable e)
        Will assign a throwable to the log entry.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object