Class Log

  • All Implemented Interfaces:
    Telemetry

    public class Log
    extends java.lang.Object
    implements Telemetry
    A Log instance represents a single entry in a log.
    • Method Detail

      • getTimestamp

        public long getTimestamp()
        Returns:
        The point in time (ms since UNIX epoch) that the log entry was created.
      • getMessage

        public java.lang.String getMessage()
        Returns:
        The log line itself
      • getAttributes

        public Attributes getAttributes()
        Returns:
        Additional attributes associated with the log entry.
      • getServiceName

        public java.lang.String getServiceName()
        Returns:
        The name of the service which produced this log entry.
      • getLevel

        public java.lang.String getLevel()
        Returns:
        The log level (eg. INFO, DEBUG, etc) for the log entry.
      • builder

        public static Log.LogBuilder builder()
        Returns:
        Create a builder for building a new log entry.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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

        public java.lang.Throwable getThrowable()