Eos client can be used from static context
\Eos\Client\Eos::sendString("Foo"); // Wont be sent - Eos not initialized
\Eos\Client\Eos::init("realm", "secret", "hostname"); // Initialize
\Eos\Client\Eos::sendString("Foo"); // Delivered using UDP
\Eos\Client\Eos::send(["message" => "hello", "ip" => $_SERVER["REMOTE_ADDR"]]); // Delivered using UDP
Eos client bundled with \Eos\Client\EosDefaultLogger
which is fully PSR3-compatible with configurable
logging threshold level
$l = new \Eos\Client\EosDefaultLogger("xxx", "yyy", "localhost", null, ["demo"], \Psr\Log\LogLevel::INFO);
$l->debug("debug"); // Ignored due threshold
$l->info("info"); // Delivered
$l->notice("notice"); // Delivered