Dev Guide
Dev GuideUser GuideGitHubNuGetDevCommunitySubmit a ticketLog In
GitHubNuGetDevCommunitySubmit a ticket

OCP App SDK / ILogger

ILogger

OCP Logger interface

Index

Methods

Methods

debug()

Write something to the logs at the Debug level

Signature

debug(...args: any[]): void;

Parameters

NameTypeDescription
...argsany[]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

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

Write something to the logs at the Debug level

Signature

debug(visibility: LogVisibility, ...args: any[]): void;

Parameters

NameTypeDescription
visibilityLogVisibilitylog visibility level (to override the default visibility)
...argsany[]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

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

error()

Write something to the logs at the Error level

Signature

error(...args: any[]): void;

Parameters

NameTypeDescription
...argsany[]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

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

Write something to the logs at the Error level

Signature

error(visibility: LogVisibility, ...args: any[]): void;

Parameters

NameTypeDescription
visibilityLogVisibilitylog visibility level (to override the default visibility)
...argsany[]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

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

info()

Write something to the logs at the Info level

Signature

info(...args: any[]): void;

Parameters

NameTypeDescription
...argsany[]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

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

Write something to the logs at the Info level

Signature

info(visibility: LogVisibility, ...args: any[]): void;

Parameters

NameTypeDescription
visibilityLogVisibilitylog visibility level (to override the default visibility)
...argsany[]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

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

warn()

Write something to the logs at the Warning level

Signature

warn(...args: any[]): void;

Parameters

NameTypeDescription
...argsany[]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

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

Write something to the logs at the Warning level

Signature

warn(visibility: LogVisibility, ...args: any[]): void;

Parameters

NameTypeDescription
visibilityLogVisibilitylog visibility level (to override the default visibility)
...argsany[]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

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