Constructors
constructor
- new prettier(prefix?, logLevel?, logFile?): prettier
Properties
Optional
prefix
prefix?: string
Methods
debug
- debug(message): void
Returns void
error
- error(message): void
Returns void
Private
formatMessage
- formatMessage(level, message): string
Returns string
info
- info(message): void
Returns void
Private
log
- log(level, color, message): void
Parameters
- level: LogLevel
- color: string
- message: string | object
Returns void
Private
logToFile
- logToFile(message): void
Returns void
ready
- ready(message): void
Returns void
setLogLevel
- setLogLevel(level): void
Returns void
warn
- warn(message): void
Returns void