Skip to main content

Configuration

Default configuration keys for @quik/logging. See Config Keys and Environment Variables for the full generated table.

  • logs.enabled (LOGS_ENABLED) — when false, the module forces QLoggerType.NO_LOGGER regardless of logs.type.
  • logs.type (LOGGER_TYPE, default console) — one of the QLoggerType values: console, file, json, json_file, no_logger. getLoggerByType() currently only special-cases json and no_logger; any other value (including file/json_file) resolves to the console logger.
  • logs.level (LOG_LEVEL, default debug) — standard Winston levels (error, warn, info, verbose, debug, silly); messages below the configured level are discarded.
  • logs.file (LOG_FILE, default app.log) and logs.folder (LOG_FOLDER, default ./storage/logs) are declared in defaults but are only meaningful to file-based logger types.

CLI runs

When IQModuleSetup.isCli is true, the module always builds a QConsoleLogger (ignoring logs.type), using DEBUG/SILLY from logs.level if set, or INFO otherwise, formatted with Winston's format.cli().