import { default } from "https://deno.land/x/logger@v1.1.7/mod.ts";
Logger class
Properties
private
encoder: TextEncoderMethods
private
format(...args: unknown[]): Uint8Arrayprivate
getDate(): stringprivate
getError(): stringprivate
getInfo(): stringprivate
getNow(): stringprivate
getWarn(): stringprivate
write(unnamed 0: LoggerWriteOptions): Promise<void>disable(type?: "info" | "warn" | "error"): void
disable a specific type of logger
disableConsole(): void
Disable console logger
disableFile(): void
Disable file logger
enable(type?: "info" | "warn" | "error"): void
Enable a specific type of logger
enableConsole(): void
Enable console logger
enableFile(): void
Enable file logger
error(...args: unknown[]): Promise<void>
Log message with error level
info(...args: unknown[]): Promise<void>
Log message with info level
initFileLogger(dir: string, options?: fileLoggerOptions): Promise<void>
init file logger
warn(...args: unknown[]): Promise<void>
Log message with warning level