コード例 #1
0
ファイル: AbstractLogger.php プロジェクト: rubendgr/lunr
 /**
  * Compose a timestamped message string.
  *
  * @param String $message Base message with placeholders
  * @param array  $context Additional meta-information for the log
  *
  * @return String $msg Log Message String
  */
 protected function compose_timestamped_message($message, $context)
 {
     $prefix = '';
     if ($this->datetime !== NULL) {
         $prefix .= '[' . $this->datetime->get_datetime() . ']: ';
     }
     return $prefix . $this->compose_message($message, $context);
 }