public class ApplicationInsightsAppender
extends org.apache.log4j.AppenderSkeleton
| Constructor and Description |
|---|
ApplicationInsightsAppender() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateOptions()
This method is being called on object initialization.
|
protected void |
append(org.apache.log4j.spi.LoggingEvent event)
Subclasses of
AppenderSkeleton should implement this
method to perform actual logging. |
void |
close()
Release any allocated resources.
|
TelemetryClientProxy |
getTelemetryClientProxy() |
boolean |
requiresLayout()
This Appender converts the LoggingEvent it receives into a text string and
requires the layout format string to do so.
|
void |
setInstrumentationKey(java.lang.String key)
Sets the instrumentation key.
|
public TelemetryClientProxy getTelemetryClientProxy()
public void setInstrumentationKey(java.lang.String key)
key - The instrumentation key.protected void append(org.apache.log4j.spi.LoggingEvent event)
AppenderSkeleton should implement this
method to perform actual logging. See also AppenderSkeleton.doAppend method.append in class org.apache.log4j.AppenderSkeletonpublic void close()
public boolean requiresLayout()
public void activateOptions()
activateOptions in interface org.apache.log4j.spi.OptionHandleractivateOptions in class org.apache.log4j.AppenderSkeleton