示例#1
0
 /**
  * Initialize the GWF_Log
  * @param boolean $no_session 
  */
 public static function onStartLogging($no_session = false)
 {
     $username = false;
     if (false === $no_session) {
         if (false !== ($user = GWF_Session::getUser())) {
             $username = $user->getVar('user_name');
         }
     }
     GWF_Log::init($username, GWF_LOG_BITS, GWF_LOGGING_PATH);
     if (!self::getConfig('buffered_log')) {
         GWF_Log::disable(GWF_Log::BUFFERED);
     }
 }