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:122
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:131
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:173
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:182
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:139
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:148
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:156
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:165
Updated 4 days ago