@salesforce/b2c-tooling-sdk / operations/logs / TailLogsOptions
Interface: TailLogsOptions ​
Defined in: packages/b2c-tooling-sdk/src/operations/logs/types.ts:77
Options for tailing logs.
Extends ​
Properties ​
lastEntries? ​
optionallastEntries:number
Defined in: packages/b2c-tooling-sdk/src/operations/logs/types.ts:93
Number of recent entries to show per file on startup. Set to 0 to skip initial entries and only show new ones.
Default ​
1maxEntries? ​
optionalmaxEntries:number
Defined in: packages/b2c-tooling-sdk/src/operations/logs/types.ts:99
Maximum number of entries to collect before stopping. When set, the tail operation will automatically stop after collecting this many entries. Useful for programmatic access.
onEntry()? ​
optionalonEntry: (entry) =>void
Defined in: packages/b2c-tooling-sdk/src/operations/logs/types.ts:65
Called for each new log entry
Parameters ​
entry ​
Returns ​
void
Inherited from ​
onError()? ​
optionalonError: (error) =>void
Defined in: packages/b2c-tooling-sdk/src/operations/logs/types.ts:67
Called when an error occurs
Parameters ​
error ​
Error
Returns ​
void
Inherited from ​
onFileDiscovered()? ​
optionalonFileDiscovered: (file) =>void
Defined in: packages/b2c-tooling-sdk/src/operations/logs/types.ts:69
Called when a new log file is discovered
Parameters ​
file ​
Returns ​
void
Inherited from ​
TailLogsCallbacks.onFileDiscovered
onFileRotated()? ​
optionalonFileRotated: (file) =>void
Defined in: packages/b2c-tooling-sdk/src/operations/logs/types.ts:71
Called when file rotation is detected (file size decreased)
Parameters ​
file ​
Returns ​
void
Inherited from ​
TailLogsCallbacks.onFileRotated
pathNormalizer()? ​
optionalpathNormalizer: (message) =>string
Defined in: packages/b2c-tooling-sdk/src/operations/logs/types.ts:104
Path normalizer function to convert remote paths to local paths. Called on each log message to make paths clickable in IDEs.
Parameters ​
message ​
string
Returns ​
string
pollInterval? ​
optionalpollInterval:number
Defined in: packages/b2c-tooling-sdk/src/operations/logs/types.ts:87
Polling interval in milliseconds.
Default ​
3000prefixes? ​
optionalprefixes:string[]
Defined in: packages/b2c-tooling-sdk/src/operations/logs/types.ts:82
Filter by log prefixes (e.g., ["error", "customerror"]).
Default ​
["error", "customerror"]