Skip to content

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 ​

PropertyModifiersTypeDescription
debug(_: Omit<Input, 'error'>) => voidVerbose diagnostics; carries no error.
error(_: Input) => voidAn operation failed; carries the error.
info(_: Omit<Input, 'error'>) => voidRoutine activity trail; carries no error.
warn(_: Input) => voidSomething off but handled; may carry an error.