Logger overview
Added in v0.6.0
Table of contents
constructors
LogEntry
Signature
export declare const LogEntry: (message: string, date: Date, level: LogLevel) => LogEntry
Added in v0.6.0
instances
Logger
Signature
export declare const Logger: Logger
Added in v0.6.0
showEntry
Signature
export declare const showEntry: S.Show<LogEntry>
Added in v0.6.0
model
LogEntry (interface)
Signature
export interface LogEntry {
readonly message: string
readonly date: Date
readonly level: LogLevel
}
Added in v0.6.0
LogLevel (type alias)
Signature
export type LogLevel = 'DEBUG' | 'ERROR' | 'INFO'
Added in v0.6.0
Logger (interface)
Signature
export interface Logger {
readonly debug: (message: string) => TE.TaskEither<string, void>
readonly error: (message: string) => TE.TaskEither<string, void>
readonly info: (message: string) => TE.TaskEither<string, void>
}
Added in v0.6.0
utils
debug
Signature
export declare const debug: (message: string) => T.Task<void>
Added in v0.6.0
error
Signature
export declare const error: (message: string) => T.Task<void>
Added in v0.6.0
info
Signature
export declare const info: (message: string) => T.Task<void>
Added in v0.6.0