Appearance
TaskLog
Some tasks (like the remote command task) can produce a text-based log file. This object provides access to these files.
Instance Methods
contents() → String
Returns the entire contents of the file.
Returns: String - The contents of the entire task log.
tail(n) → String
Returns the last N lines of the file.
Returns: String - The last N lines of the file
Parameters:
| Parameter | Type | Description |
|---|---|---|
| n | int | The number of lines to return. |
head(n) → String
Returns the first N lines of the file
Returns: String - The first N lines of the file
Parameters:
| Parameter | Type | Description |
|---|---|---|
| n | int | The number of lines to return. |