Logfile:onNewLine

Method

Purpose

This method (on all platforms) returns the new line in a log file whenever a new line is appended to the log file.

The first time this method is invoked, the previousLine field will be blank. On s subsequent invocations, the previousLine field will contain the value of the nextLine field of the previous method invocation.

Type

Asynchronous, IMPACT_INFO.

Arguments

 

Name

Type

Description

Logfile

String

The log file to be monitored.

Back quoted strings, external and internal variables can be used. The TIBCO Hawk agent will execute the command within the back quotes and return the string for substitution.

For example, ’echo /tmp/foo.log’ will be evaluated to /tmp/foo.log

Returns

 

 

Name

Type

Description

nextLine

String

The next available line in the log file

previousLine

String

The previous line in the log file