Package com.newrelic.api.agent
Interface Logs
-
public interface LogsUsed to send LogEvents to New Relic. Each LogEvent represents a single log line.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrecordLogEvent(java.util.Map<LogAttributeKey,?> attributes)Sends a LogEvent for the current application.
-
-
-
Method Detail
-
recordLogEvent
void recordLogEvent(java.util.Map<LogAttributeKey,?> attributes)
Sends a LogEvent for the current application.- Parameters:
attributes- A map of log event data (e.g. log message, log timestamp, log level) Each key should be a String and each value should be a String, Number, or Boolean. For map values that are not String, Number, or Boolean object types the toString value will be used.- Since:
- 7.6.0
-
-