class DateFileHandler
extends WriterHandler
Re-export
import { DateFileHandler } from "https://deno.land/x/date_file_log@v0.5.0/mod.ts";
Constructors
new
DateFileHandler(levelName: LevelName, options: FileHandlerOptions)Properties
protected
_buf: BufWriterSyncprotected
_encoder: TextEncoderprotected
_file: Deno.FsFile | undefinedprotected
_mode: LogModeprotected
_openOptions: Deno.OpenOptionsMethods
private
_log(msg: string): voidprivate
getFilenameByDate(filename: string, date?): stringprivate
init()private
mkdirAndremoveExpiredFiles()private
setupBuf()destroy()
flush(): void
log(msg: string): void
setup()