Home > @opengovsg/logging > BasicLogger
BasicLogger interface
A simplified logger interface that both console and Logger can implement, for shared client and server side code.
Signature:
typescript
export interface BasicLogger<Input extends Partial<LogInput> = LogInput>Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| debug | (_: Omit<Input, 'error'>) => void | Verbose diagnostics; carries no error. | |
| error | (_: Input) => void | An operation failed; carries the error. | |
| info | (_: Omit<Input, 'error'>) => void | Routine activity trail; carries no error. | |
| warn | (_: Input) => void | Something off but handled; may carry an error. |