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 loggingTelemetryClientresponses.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 voidnoticeError(java.lang.String message, java.lang.Throwable t, TelemetryBatch<? extends Telemetry> batch)Notice error events.voidnoticeInfo(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:NotificationHandlerNotice info events.- Specified by:
noticeInfoin interfaceNotificationHandler- Parameters:
message- the message provided byTelemetryClientexception- the Exception provided byTelemetryClientbatch- 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:NotificationHandlerNotice error events.- Specified by:
noticeErrorin interfaceNotificationHandler- Parameters:
message- the message provided byTelemetryClientt- the throwable provided byTelemetryClientbatch- the telemetry batch that was sent
-
-