Constructors
constructor
- new Logger(conf): Logger
Parameters
- conf: ("error" | "info")[]
Methods
error
- error(err, path?): void
Parameters
- err: Error
Optional
path: string
Returns void
info
- info(msg, color?): void
Parameters
- msg: string
- color: "green" | "yellow" = "green"
Returns void
日志对象