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 classLog.LogBuilderA 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.LogBuilderbuilder()booleanequals(java.lang.Object o)AttributesgetAttributes()java.lang.StringgetLevel()java.lang.StringgetMessage()java.lang.StringgetServiceName()java.lang.ThrowablegetThrowable()longgetTimestamp()inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getThrowable
public java.lang.Throwable getThrowable()
-
-