Kajona\System\System\Logger

The Logger provides a small and fast logging-engine to generate a debug logfile.

The granularity of the logging is defined in the config.php

Synopsis

class Logger {
  • // constants
  • const SYSTEMLOG = "systemlog.log";
  • const DBLOG = "dblayer.log";
  • const USERSOURCES = "usersources.log";
  • const QUERIES = "dbqueries.log";
  • const EVENTS = "events.log";
  • const PACKAGEMANAGEMENT = "packagemanagement.log";
  • const REMOTELOADER = "remoteloader.log";
  • const ADMINTASKS = "admintasks.log";
}

Constants

Name Value
SYSTEMLOG "systemlog.log"
DBLOG "dblayer.log"
USERSOURCES "usersources.log"
QUERIES "dbqueries.log"
EVENTS "events.log"
PACKAGEMANAGEMENT "packagemanagement.log"
REMOTELOADER "remoteloader.log"
ADMINTASKS "admintasks.log"

Members

private

  • $arrInstances — array
    Array of logger-instances
  • $intLogLevel
  • $strFilename — string
    Constant defining the filename

public

  • $levelError — int
    Level to be used for real errors
  • $levelInfo — int
    Level to be used for infos
  • $levelWarning — int
    Level to be used for warnings

Methods

public