aem-plugin / com.cognifide.gradle.aem.common.instance.tail / Tailer

Tailer

class Tailer

Constructors

<init>

Tailer(manager: InstanceManager)

Properties

console

Indicates if tailer will print all logs to console.

val console: Property<Boolean!>!

fetchInterval

Determines how often logs will be polled from AEM instance.

val fetchInterval: Property<Long!>!

incidentDelay

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

val incidentDelay: Property<Long!>!

incidentFilter

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

val incidentFilter: RegularFileProperty!

linesChunkSize

val linesChunkSize: Property<Long!>!

lockInterval

val lockInterval: Property<Long!>!

logFile

val logFile: String

logFilePath

Determines log file being tracked on AEM instance.

var logFilePath: Property<String!>!

logFilter

Log filter responsible for filtering incidents.

val logFilter: LogFilter

logStorageDir

Directory where log files will be stored.

val logStorageDir: DirectoryProperty!

manager

val manager: InstanceManager

Functions

errorLogEndpoint

fun errorLogEndpoint(instance: Instance): String

incidentChecker

Determines which log entries are considered as incidents.

fun incidentChecker(predicate: Log.(Instance) -> Boolean): Unit

logFilter

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

logListener

Hook for tracking all log entries on each AEM instance.

fun logListener(callback: Log.(Instance) -> Unit): Unit

tail

fun tail(instance: Instance): Unit

Run tailer daemons (tracking instance logs).

fun tail(instances: Collection<Instance>): 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