Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LoggerFile

Hierarchy

  • LoggerFile

Implements

  • ILogger

Index

Constructors

Protected constructor

Properties

Private _file

_file: FileHandler

Private _idx

_idx: number = 0

Filecounter, in case we have to create multiple files for a day due to filesize limit

Private _initialized

_initialized: boolean = false

Private _todayMid

_todayMid: number = ...

Private _tomorrowMid

_tomorrowMid: number = ...

Private _writeTimer

_writeTimer: any = null

directory

directory: string

opts

opts: ILoggerOpts

Accessors

path

  • get path(): string

Methods

flush

  • flush(): void

Private flushAsync

  • flushAsync(): void

Private flushSync

  • flushSync(): void

Protected init

  • init(): void

Protected initOptions

  • initOptions(opts: ILoggerOpts): void

Private nextFile

  • nextFile(): FileHandler

Private onTimeout

  • onTimeout(): void

removeAll

  • removeAll(): Promise<any>

write

  • write(mix: string | any[]): void
  • Parameters

    • mix: string | any[]

    Returns void

writeRow

  • writeRow(cells: any[], additional?: ICsvDictionary | ICsvColumnValue[]): void
  • Parameters

    • cells: any[]
    • Optional additional: ICsvDictionary | ICsvColumnValue[]

    Returns void

writeRows

  • writeRows(cellsMany: any[][]): void

Static create

  • create(key: string, opts: ILoggerOpts): LoggerFile

Static prepair

Static restore

  • restore(directory: string, key: string, options?: ILoggerOpts): Promise<LoggerFile>

Generated using TypeDoc