public class InstanceTailer
@NotNull public static java.lang.String ENDPOINT_PATH
@NotNull public static java.lang.String ENDPOINT_PATH_OLD
public static long INCIDENT_OLD_DEFAULT
public static com.cognifide.gradle.aem.instance.tail.InstanceTailer.Companion Companion
public InstanceTailer(@NotNull
AemExtension aem)
@NotNull public java.io.File getRootDir()
Directory where log files will be stored.
public void setRootDir(@NotNull
java.io.File p)
Directory where log files will be stored.
@NotNull public java.util.List<com.cognifide.gradle.aem.common.instance.Instance> getInstances()
Instances from which logs will be tailed.
public void setInstances(@NotNull
java.util.List<? extends com.cognifide.gradle.aem.common.instance.Instance> p)
Instances from which logs will be tailed.
@NotNull public java.lang.String getLogFilePath()
Determines log file being tracked on AEM instance.
public void setLogFilePath(@NotNull
java.lang.String p)
Determines log file being tracked on AEM instance.
@NotNull public kotlin.jvm.functions.Function2<com.cognifide.gradle.aem.instance.tail.Log,com.cognifide.gradle.aem.common.instance.Instance,kotlin.Unit> getLogListener()
Hook for tracking all log entries on each AEM instance.
Useful for integrating external services like chats etc.
public void setLogListener(@NotNull
kotlin.jvm.functions.Function2<? super com.cognifide.gradle.aem.instance.tail.Log,? super com.cognifide.gradle.aem.common.instance.Instance,kotlin.Unit> p)
Hook for tracking all log entries on each AEM instance.
Useful for integrating external services like chats etc.
@NotNull public LogFilter getLogFilter()
Log filter responsible for filtering incidents.
public void logFilter(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.instance.tail.LogFilter,kotlin.Unit> options)
@NotNull public kotlin.jvm.functions.Function2<com.cognifide.gradle.aem.instance.tail.Log,com.cognifide.gradle.aem.common.instance.Instance,java.lang.Boolean> getIncidentChecker()
Determines which log entries are considered as incidents.
public void setIncidentChecker(@NotNull
kotlin.jvm.functions.Function2<? super com.cognifide.gradle.aem.instance.tail.Log,? super com.cognifide.gradle.aem.common.instance.Instance,java.lang.Boolean> p)
Determines which log entries are considered as incidents.
@NotNull public java.io.File getIncidentFilter()
Path to file holding wildcard rules that will effectively deactivate notifications for desired exception.
Changes in that file are automatically considered (tailer restart is not required).
public void setIncidentFilter(@NotNull
java.io.File p)
Path to file holding wildcard rules that will effectively deactivate notifications for desired exception.
Changes in that file are automatically considered (tailer restart is not required).
public boolean getConsole()
Indicates if tailer will print all logs to console.
public void setConsole(boolean p)
Indicates if tailer will print all logs to console.
public long getIncidentDelay()
Time window in which exceptions will be aggregated and reported as single incident.
public void setIncidentDelay(long p)
Time window in which exceptions will be aggregated and reported as single incident.
public long getFetchInterval()
Determines how often logs will be polled from AEM instance.
public void setFetchInterval(long p)
Determines how often logs will be polled from AEM instance.
public long getLockInterval()
public void setLockInterval(long p)
public long getLinesChunkSize()
public void setLinesChunkSize(long p)
@NotNull
public java.lang.String errorLogEndpoint(@NotNull
Instance instance)
@NotNull public java.lang.String getLogFile()
public void incidentFilter(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.instance.tail.LogFilter,kotlin.Unit> options)
public void tail()
@NotNull public AemExtension getAem()