SetUser($GLOBALS["mapisession"]->getUserName()); Log::$logger->SetSpecialLogUsers(explode(";", LOG_USERS)); } return Log::$logger; } /** * Writes a log line. * * @param int $loglevel one of the defined LOGLEVELS * @param string $message The log message which we want to log in user specific log file * @param mixed $exception * @param mixed $requestData */ public static function Write($loglevel, $message, $exception = false, $requestData = false) { try { Log::getLogger()->Log($loglevel, $message, $exception, $requestData); } catch (Exception $e) { error_log("There is problem to log user action. Exceptions:: " . $e); } } }