Logger::__construct()

Constructor.

Description

Sets the level mappings from log levels to PHP error constants.

See also

Source

File: src/logger.php

	public function __construct() {
		$this->level_mappings = array(
			LogLevel::EMERGENCY => E_USER_ERROR,
			LogLevel::ALERT     => E_USER_ERROR,
			LogLevel::CRITICAL  => E_USER_ERROR,
			LogLevel::ERROR     => E_USER_ERROR,
			LogLevel::WARNING   => E_USER_WARNING,
			LogLevel::NOTICE    => E_USER_NOTICE,
			LogLevel::INFO      => E_USER_NOTICE,
			LogLevel::DEBUG     => E_USER_NOTICE,
		);
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.