Package com.newrelic.telemetry
Class LoggingNotificationHandler
- java.lang.Object
-
- com.newrelic.telemetry.LoggingNotificationHandler
-
- All Implemented Interfaces:
NotificationHandler
public class LoggingNotificationHandler extends java.lang.Object implements NotificationHandler
The default NotificationHandler for loggingTelemetryClient
responses.Users may choose to override this implementation to provide additional behavior. For example, applications using the New Relic Java agent could report errors via the NewRelic.noticeError API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
noticeError(java.lang.String message, java.lang.Throwable t, TelemetryBatch<? extends Telemetry> batch)
Notice error events.void
noticeInfo(java.lang.String message, java.lang.Exception exception, TelemetryBatch<? extends Telemetry> batch)
Notice info events.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.newrelic.telemetry.NotificationHandler
noticeError, noticeInfo
-
-
-
-
Method Detail
-
noticeInfo
public void noticeInfo(java.lang.String message, java.lang.Exception exception, TelemetryBatch<? extends Telemetry> batch)
Description copied from interface:NotificationHandler
Notice info events.- Specified by:
noticeInfo
in interfaceNotificationHandler
- Parameters:
message
- the message provided byTelemetryClient
exception
- the Exception provided byTelemetryClient
batch
- the telemetry batch that was sent
-
noticeError
public void noticeError(java.lang.String message, java.lang.Throwable t, TelemetryBatch<? extends Telemetry> batch)
Description copied from interface:NotificationHandler
Notice error events.- Specified by:
noticeError
in interfaceNotificationHandler
- Parameters:
message
- the message provided byTelemetryClient
t
- the throwable provided byTelemetryClient
batch
- the telemetry batch that was sent
-
-