fix(types): logger (#9581)
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
export interface Logger {
|
||||
panic: (data) => void
|
||||
shouldLog: (level: string) => void
|
||||
panic: (data: any) => void
|
||||
shouldLog: (level: string) => boolean
|
||||
setLogLevel: (level: string) => void
|
||||
unsetLogLevel: () => void
|
||||
activity: (message: string, config?) => void
|
||||
progress: (activityId, message) => void
|
||||
error: (messageOrError, error?) => void
|
||||
failure: (activityId, message) => void
|
||||
success: (activityId, message) => void
|
||||
debug: (message) => void
|
||||
info: (message) => void
|
||||
warn: (message) => void
|
||||
log: (...args) => void
|
||||
activity: (message: string, config?: Record<string, any>) => string
|
||||
progress: (activityId: string, message: string) => void
|
||||
error: (messageOrError: string | Error, error?: Error) => void
|
||||
failure: (activityId: string, message: string) => Record<string, any> | null
|
||||
success: (activityId: string, message: string) => Record<string, any> | null
|
||||
debug: (message: string) => void
|
||||
info: (message: string) => void
|
||||
warn: (message: string) => void
|
||||
log: (...args: any[]) => void
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user