private function registerLogger()
	{
        $path = $this->config->get('logger:path')?: __LOGGING_PATH;
                
        if (!file_exists($path)) throw new PlinthException('Logging directory does not exist');
        
        $this->_logger = KLogger::instance($path, KLogger::INFO);
        
        $mail = $this->config->get('logger:mail');
        if (is_array($mail)) {
            foreach ($mail as $name => $address) {
                $this->_logger->addMailing($address, $name);
            }
        }
        
        register_shutdown_function([KLogger::class, 'handleShutdown'], $this->_logger);
    }