Exemple #1
0
 /**
  * Send log information to Amon
  *
  * @param  string $message The log message
  * @param  mixed  $tag     Tags for the log message
  * @return void
  */
 protected static function amon($message, $tags)
 {
     $data = array('message' => $message, 'tags' => $tags);
     Amon_Request::request($data, 'log');
 }
Exemple #2
0
 /**
  * Amon Exception handler
  *
  * @param  Exception $e the exception
  * @return bool
  */
 private static function handle_exception($exception)
 {
     $data = new Amon_Data($exception);
     Amon_Request::request($data->data, 'exception');
 }