Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

Handles the writing and reading of log lines. All lines are encrypted using Encryption

Hierarchy

  • Logger

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly file

file: File

The file that stores all the logs

Readonly options

options: LoggerOptions

General options for this instance

Methods

read

  • read(): AsyncGenerator<string>
  • Starts reading from the log file. The content is reversely read line by line

    Returns AsyncGenerator<string>

write

  • write(log: string): Promise<void>
  • Encrypts and writes a log line to the log file

    Parameters

    • log: string

      The log line

    Returns Promise<void>

Generated using TypeDoc