Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

combine

combine: combine

Const config

config: Config = getConfig()

Const db

db: Database = new sqlite.Database("./config/db.sqlite")

Const logger

logger: Logger = createLogger({format: combine(timestamp(), myFormat),transports: [new transports.File({ filename: "log/error.log", level: "error" }),new transports.File({ filename: "log/combined.log" }),],})

Const myFormat

myFormat: Format = printf((info: any) => {return `${info.timestamp} ${info.level}: ${info.message}`;})

printf

printf: printf

Const sqlite

sqlite: sqlite3 = sqlite3.verbose()

timestamp

timestamp: timestamp

Functions

getConfig

  • simple function to get and parse the TOML config file

    Returns Config

Legend

  • Variable
  • Function
  • Interface
  • Class

Generated using TypeDoc