Skip to main content

git-sync-js / interface / ILogger

Interface: ILogger

interface.ILogger

custom logger to report progress on each step we don't use logger to report error, we throw errors.

Table of contents

Properties

Properties

debug

debug: (message: string, context: ILoggerContext) => unknown

Type declaration

▸ (message, context): unknown

used to report debug logs

Parameters
NameType
messagestring
contextILoggerContext
Returns

unknown

Defined in

src/interface.ts:19


info

info: (message: GitStep, context: ILoggerContext) => unknown

Type declaration

▸ (message, context): unknown

used to report progress for human user to read

Parameters
NameType
messageGitStep
contextILoggerContext
Returns

unknown

Defined in

src/interface.ts:21


warn

warn: (message: string, context: ILoggerContext) => unknown

Type declaration

▸ (message, context): unknown

used to report failed optional progress

Parameters
NameType
messagestring
contextILoggerContext
Returns

unknown

Defined in

src/interface.ts:23