示例#1
0
 /**
  * 
  * @param String $msg
  * @param array $context
  */
 protected static function extendContext($msg, array $context)
 {
     $context[self::MESSAGE] = $msg;
     $context[self::NEW_LINE] = "\n";
     $context[self::DATE] = date('c');
     $context[self::PID] = self::getPid();
     $context[self::PERCENT] = '%';
     if (array_key_exists(self::LOG_LEVEL, $context)) {
         $context[self::LOG_LEVEL] = Level::toString($context[self::LOG_LEVEL]);
     }
     return $context;
 }