*/ namespace LaswitchTech\Core; use DateTime; use Exception; use ReflectionClass; class Log { // Constants for log levels const DEBUG_LABEL = 'DEBUG'; ... private $Path = null; private $Levels = []; private $Level = 0; private $IP = false; private $Rotation = false; private $Files = []; private $File = null; private $Message = null; public function __construct(){ global $CONFIG; $CONFIG->add('log'); ... } public function config($level = null){ ... } public function ip(){ ... } public function agent(){ ... } public function add($name, $path = null){ ... } public function set($name){ ... } public function clear($name = null){ ... } public function read($name = null){ ... } public function list(){ ... } public function log($message, $level = self::LEVEL_INFO, $name = null){ ... } public function debug($message, $name = null){ ... } public function info($message, $name = null){ ... } public function success($message, $name = null){ ... } public function warning($message, $name = null){ ... } public function error($message, $name = null){ ... } public function fatal(){ ... } }