aem-plugin / com.cognifide.gradle.aem.instance.tail / InstanceTailer

InstanceTailer

class InstanceTailer

Constructors

<init>

InstanceTailer(aem: AemExtension)

Properties

aem

val aem: AemExtension

console

Indicates if tailer will print all logs to console.

var console: Boolean

fetchInterval

Determines how often logs will be polled from AEM instance.

var fetchInterval: Long

incidentChecker

Determines which log entries are considered as incidents.

var incidentChecker: Log.(Instance) -> Boolean

incidentDelay

Time window in which exceptions will be aggregated and reported as single incident.

var incidentDelay: Long

incidentFilter

Path to file holding wildcard rules that will effectively deactivate notifications for desired exception.

var incidentFilter: File

instances

Instances from which logs will be tailed.

var instances: List<Instance>

linesChunkSize

var linesChunkSize: Long

lockInterval

var lockInterval: Long

logFile

val logFile: String

logFilePath

Determines log file being tracked on AEM instance.

var logFilePath: String

logFilter

Log filter responsible for filtering incidents.

val logFilter: LogFilter

logListener

Hook for tracking all log entries on each AEM instance.

var logListener: Log.(Instance) -> Unit

rootDir

Directory where log files will be stored.

var rootDir: File

Functions

errorLogEndpoint

fun errorLogEndpoint(instance: Instance): String

incidentFilter

fun incidentFilter(options: LogFilter.() -> Unit): Unit

logFilter

fun logFilter(options: LogFilter.() -> Unit): Unit

tail

fun tail(): Unit

Companion Object Properties

ENDPOINT_PATH

const val ENDPOINT_PATH: String

ENDPOINT_PATH_OLD

const val ENDPOINT_PATH_OLD: String

INCIDENT_LEVELS_DEFAULT

val INCIDENT_LEVELS_DEFAULT: List<String>

INCIDENT_OLD_DEFAULT

const val INCIDENT_OLD_DEFAULT: Long