Constructors
constructor
- new Logger(label?: string | (() => string), vorpal?: Vorpal): Logger
-
Parameters
-
Optional
label: string | (() => string)
-
Optional
vorpal: Vorpal
Methods
data
- data(message: string, ...fmt: any[]): void
-
Parameters
-
message: string
-
Rest
...fmt: any[]
Returns void
debug
- debug(message: string, ...fmt: any[]): void
-
Parameters
-
message: string
-
Rest
...fmt: any[]
Returns void
error
- error(message: string, ...fmt: any[]): void
-
Parameters
-
message: string
-
Rest
...fmt: any[]
Returns void
getLabel
- getLabel(): string
-
Returns string
info
- info(message: string, ...fmt: any[]): void
-
Parameters
-
message: string
-
Rest
...fmt: any[]
Returns void
warn
- warn(message: string, ...fmt: any[]): void
-
Parameters
-
message: string
-
Rest
...fmt: any[]
Returns void
Properties
Optional
fileStream
fileStream?: WriteStream