Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

can use other watchdog server

  • Loading branch information...
commit 33d3c0d02c180bcf56e8c499e961298aca71f956 1 parent 9ed9cde
@bazo authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 Bazo/Watchdog/Client.php
View
5 Bazo/Watchdog/Client.php
@@ -11,13 +11,14 @@ class Client
$appId,
$appKey,
- $endPoint = 'http://watchdog.local/api/log'
+ $endPoint = '/api/log'
;
- public function __construct($appId, $appKey)
+ public function __construct($appId, $appKey, $server = 'http://watchdog.pagodabox.com')
{
$this->appId = $appId;
$this->appKey = $appKey;
+ $this->endPoint = $server.$this->endPoint;
}
public function log($message, $level = Alert::ERROR)
Please sign in to comment.
Something went wrong with that request. Please try again.