class AbstractWinstonLogger
implements ILogger
Re-export
Abstract
import { AbstractWinstonLogger } from "https://deno.land/x/sptaki@1.2.0/utils/logging/mod.ts";
Constructors
new
AbstractWinstonLogger(asyncQueue: IAsyncQueue)Properties
protected
asyncQueue: IAsyncQueueprotected
logger: winston.Logger & SptLoggerprotected
logLevels: { levels: { error: number; warn: number; succ: number; info: number; custom: number; debug: number; }; colors: { error: string; warn: string; succ: string; info: string; custom: string; debug: string; }; bgColors: { default: string; blackBG: string; redBG: string; greenBG: string; yellowBG: string; blueBG: string; magentaBG: string; cyanBG: string; whiteBG: string; }; }Methods
protected
abstract
getFileName(): stringprotected
abstract
getFilePath(): stringprotected
getLogFrequency(): stringprotected
getLogMaxFiles(): stringprotected
getLogMaxSize(): stringprotected
abstract
isLogExceptions(): booleanprotected
abstract
isLogToConsole(): booleanprotected
abstract
isLogToFile(): booleandebug(data: string | Record<string, unknown>, onlyShowInConsole?: boolean): Promise<void>
error(data: string | Record<string, unknown>): Promise<void>
info(data: string | Record<string, unknown>): Promise<void>
log(): Promise<void>
data: string | Error | Record<string, unknown>,
color: string,
backgroundColor?: string,
logWithColor(): Promise<void>
data: string | Record<string, unknown>,
textColor: LogTextColor,
backgroundColor?: LogBackgroundColor,
Log to console text with a customisable text and background color. Background defaults to black
success(data: string | Record<string, unknown>): Promise<void>
warning(data: string | Record<string, unknown>): Promise<void>
writeToLogFile(data: string | Daum): Promise<void>