Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev Guide
Dev GuideUser GuidesGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

OCP App SDK


OCP App SDK / ILogger

Interface: ILogger

Defined in: src/logging/Logger.ts:124

OCP Logger interface

Methods

debug()

Call Signature

debug(...args): void

Defined in: src/logging/Logger.ts:131

Write something to the logs at the Debug level

Parameters
args

...any[]

One or more values to log.
Objects are formatted using util.inspect, other values are converted to a string.
Multiple values are concatenated with a space between

Returns

void

Call Signature

debug(visibility, ...args): void

Defined in: src/logging/Logger.ts:140

Write something to the logs at the Debug level

Parameters
visibility

LogVisibility

log visibility level (to override the default visibility)

args

...any[]

One or more values to log.
Objects are formatted using util.inspect, other values are converted to a string.
Multiple values are concatenated with a space between

Returns

void


error()

Call Signature

error(...args): void

Defined in: src/logging/Logger.ts:182

Write something to the logs at the Error level

Parameters
args

...any[]

One or more values to log.
Objects are formatted using util.inspect, other values are converted to a string.
Multiple values are concatenated with a space between

Returns

void

Call Signature

error(visibility, ...args): void

Defined in: src/logging/Logger.ts:191

Write something to the logs at the Error level

Parameters
visibility

LogVisibility

log visibility level (to override the default visibility)

args

...any[]

One or more values to log.
Objects are formatted using util.inspect, other values are converted to a string.
Multiple values are concatenated with a space between

Returns

void


info()

Call Signature

info(...args): void

Defined in: src/logging/Logger.ts:148

Write something to the logs at the Info level

Parameters
args

...any[]

One or more values to log.
Objects are formatted using util.inspect, other vaules are converted to a string.
Multiple values are concatenated with a space between

Returns

void

Call Signature

info(visibility, ...args): void

Defined in: src/logging/Logger.ts:157

Write something to the logs at the Info level

Parameters
visibility

LogVisibility

log visibility level (to override the default visibility)

args

...any[]

One or more values to log.
Objects are formatted using util.inspect, other values are converted to a string.
Multiple values are concatenated with a space between

Returns

void


warn()

Call Signature

warn(...args): void

Defined in: src/logging/Logger.ts:165

Write something to the logs at the Warning level

Parameters
args

...any[]

One or more values to log.
Objects are formatted using util.inspect, other values are converted to a string.
Multiple values are concatenated with a space between

Returns

void

Call Signature

warn(visibility, ...args): void

Defined in: src/logging/Logger.ts:174

Write something to the logs at the Warning level

Parameters
visibility

LogVisibility

log visibility level (to override the default visibility)

args

...any[]

One or more values to log.
Objects are formatted using util.inspect, other values are converted to a string.
Multiple values are concatenated with a space between

Returns

void