/** * A Logger provides methods to save a developer message somewhere it can be retrieved * @see LoggerInterface.getLogFile */ interface LoggerInterface { /** * default logging method, the logging level needs to be specified * @see LogLevel */ log(level: number, message: string): Promise; /** * log with level 'fatal' * @see LogLevel.fatal */ fatal(message: string): Promise; /** * log with level 'error' * @see LogLevel.error */ error(message: string): Promise; /** * log with level 'warning' * @see LogLevel.warning */ warning(message: string): Promise; /** * log with level 'notice' * @see LogLevel.notice */ notice(message: string): Promise; /** * log with level 'info' * @see LogLevel.info */ info(message: string): Promise; /** * log with level 'debug' * @see LogLevel.debug */ debug(message: string): Promise; /** * logs the error, preferably with stack trace * @see LoggerInterface.getExceptionsLogFile */ exception(error: Error): Promise; /** * @return path to the default log file */ getLogFile(): string; /** * @return path to the exceptions log file */ getExceptionsLogFile(): string; }