public function message($message, $level, $level_name, $channel, $datetime)
    {
        $datetime->setTimezone(new \DateTimeZone('UTC'));

        $this->request->setData(array(
            'message'     => $message,
            'status_code' => $level,
            'status_name' => $level_name,
            'channel'     => $channel,
            'created_utc' => $datetime->format('Y-m-d H:i:s')
        ));

        try {
            $this->client->send($this->request);
        } catch (FormattingException $e) {

        }
    }
public function message($message, $level, $level_name, $channel, $datetime)
    {
        $datetime->setTimezone(new \DateTimeZone('UTC'));

        $this->request->setData(array(
            'message'     => $message,
            'status_code' => $level,
            'status_name' => $level_name,
            'channel'     => $channel,
            'created_utc' => $datetime->format('Y-m-d H:i:s')
        ));

        try {
            $this->client->send($this->request);
        } catch (FormattingException $e) {

        }
    }
public function message ( $ message , $ level , $ level_name , $ channel , $ datetime ) { $ datetime -> setTimezone ( new \ DateTimeZone ( 'UTC' ) ) ; $ this -> request -> setData ( array ( 'message' => $ message , 'status_code' => $ level , 'status_name' => $ level_name , 'channel' => $ channel , 'created_utc' => $ datetime -> format ( 'Y-m-d H:i:s' ) ) ) ; try { $ this -> client -> send ( $ this -> request ) ; } catch ( FormattingException $ e ) { } }
Build message to send to AtomLogger

@param  string    $message
@param  integer   $level
@param  string    $level_name
@param  string    $channel
@param  \DateTime $datetime
Build message to send to AtomLogger