-
public final class Tailer
-
-
Field Summary
Fields Modifier and Type Field Description private final DirectoryPropertylogStorageDirprivate Property<String>logFilePathprivate final RegularFilePropertyincidentFilterprivate final Property<Boolean>consoleprivate final Property<Long>incidentDelayprivate final Property<Long>fetchIntervalprivate final Property<Long>lockIntervalprivate final Property<Long>linesChunkSizeprivate final LogFilterlogFilterprivate final StringlogFileprivate final InstanceManagermanager
-
Constructor Summary
Constructors Constructor Description Tailer(InstanceManager manager)
-
Method Summary
Modifier and Type Method Description final UnitlogListener(Function2<Log, Instance, Unit> callback)Hook for tracking all log entries on each AEM instance. final UnitlogFilter(Function1<LogFilter, Unit> options)final UnitincidentChecker(Function2<Log, Instance, Boolean> predicate)Determines which log entries are considered as incidents. final Unittail(Instance instance)final Unittail(Collection<Instance> instances)Run tailer daemons (tracking instance logs). final StringerrorLogEndpoint(Instance instance)final DirectoryPropertygetLogStorageDir()Directory where log files will be stored. final Property<String>getLogFilePath()Determines log file being tracked on AEM instance. final RegularFilePropertygetIncidentFilter()Path to file holding wildcard rules that will effectively deactivate notifications for desired exception. final Property<Boolean>getConsole()Indicates if tailer will print all logs to console. final Property<Long>getIncidentDelay()Time window in which exceptions will be aggregated and reported as single incident. final Property<Long>getFetchInterval()Determines how often logs will be polled from AEM instance. final Property<Long>getLockInterval()final Property<Long>getLinesChunkSize()final LogFiltergetLogFilter()Log filter responsible for filtering incidents. final StringgetLogFile()final InstanceManagergetManager()final UnitsetLogFilePath(Property<String> logFilePath)Determines log file being tracked on AEM instance. -
-
Constructor Detail
-
Tailer
Tailer(InstanceManager manager)
-
-
Method Detail
-
logListener
final Unit logListener(Function2<Log, Instance, Unit> callback)
Hook for tracking all log entries on each AEM instance.
-
incidentChecker
final Unit incidentChecker(Function2<Log, Instance, Boolean> predicate)
Determines which log entries are considered as incidents.
-
tail
final Unit tail(Collection<Instance> instances)
Run tailer daemons (tracking instance logs).
-
errorLogEndpoint
final String errorLogEndpoint(Instance instance)
-
getLogStorageDir
final DirectoryProperty getLogStorageDir()
Directory where log files will be stored.
-
getLogFilePath
final Property<String> getLogFilePath()
Determines log file being tracked on AEM instance.
-
getIncidentFilter
final RegularFileProperty getIncidentFilter()
Path to file holding wildcard rules that will effectively deactivate notifications for desired exception.
-
getConsole
final Property<Boolean> getConsole()
Indicates if tailer will print all logs to console.
-
getIncidentDelay
final Property<Long> getIncidentDelay()
Time window in which exceptions will be aggregated and reported as single incident.
-
getFetchInterval
final Property<Long> getFetchInterval()
Determines how often logs will be polled from AEM instance.
-
getLockInterval
final Property<Long> getLockInterval()
-
getLinesChunkSize
final Property<Long> getLinesChunkSize()
-
getLogFilter
final LogFilter getLogFilter()
Log filter responsible for filtering incidents.
-
getLogFile
final String getLogFile()
-
getManager
final InstanceManager getManager()
-
setLogFilePath
final Unit setLogFilePath(Property<String> logFilePath)
Determines log file being tracked on AEM instance.
-
-
-
-