Package com.newrelic.telemetry.logs
Class Log
- java.lang.Object
-
- com.newrelic.telemetry.logs.Log
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Log.LogBuilder
A class for holding the variables associated with a Log object and creating a new Log object with those variables.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Log.LogBuilder
builder()
boolean
equals(java.lang.Object o)
Attributes
getAttributes()
java.lang.String
getLevel()
java.lang.String
getMessage()
java.lang.String
getServiceName()
java.lang.Throwable
getThrowable()
long
getTimestamp()
int
hashCode()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getThrowable
public java.lang.Throwable getThrowable()
-
-