Skip to content

Commit

Permalink
update logger
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatthes committed Dec 2, 2019
1 parent 7c30f8f commit dea9d53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agent/hoststats.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace App;

use Phore\Log\Logger\PhoreEchoLoggerDriver;
use Phore\Log\PhoreLogger;
use Psr\Log\LogLevel;

require __DIR__ . "/../vendor/autoload.php";
Expand All @@ -14,7 +15,8 @@

$pushUrl = CONF_METRICS_HOST . "/v1/push/node";

phore_log()->setDriver(new PhoreEchoLoggerDriver());

PhoreLogger::Init(new PhoreEchoLoggerDriver());
phore_log()->setLogLevel(LogLevel::WARNING);


Expand Down

0 comments on commit dea9d53

Please sign in to comment.