ILogger
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
Name | Type | Description |
---|---|---|
...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
Defined in: src/logging/Logger.ts:129
Write something to the logs at the Debug level
Signature
debug(visibility: LogVisibility, ...args: any[]): void;
Parameters
Name | Type | Description |
---|---|---|
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
Defined in: src/logging/Logger.ts:138
error()
Write something to the logs at the Error level
Signature
error(...args: any[]): void;
Parameters
Name | Type | Description |
---|---|---|
...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
Defined in: src/logging/Logger.ts:180
Write something to the logs at the Error level
Signature
error(visibility: LogVisibility, ...args: any[]): void;
Parameters
Name | Type | Description |
---|---|---|
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
Defined in: src/logging/Logger.ts:189
info()
Write something to the logs at the Info level
Signature
info(...args: any[]): void;
Parameters
Name | Type | Description |
---|---|---|
...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
Defined in: src/logging/Logger.ts:146
Write something to the logs at the Info level
Signature
info(visibility: LogVisibility, ...args: any[]): void;
Parameters
Name | Type | Description |
---|---|---|
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
Defined in: src/logging/Logger.ts:155
warn()
Write something to the logs at the Warning level
Signature
warn(...args: any[]): void;
Parameters
Name | Type | Description |
---|---|---|
...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
Defined in: src/logging/Logger.ts:163
Write something to the logs at the Warning level
Signature
warn(visibility: LogVisibility, ...args: any[]): void;
Parameters
Name | Type | Description |
---|---|---|
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
Defined in: src/logging/Logger.ts:172
Updated 2 months ago