Skip to content

Commit

Permalink
Use the screen logger in example
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Mar 8, 2021
1 parent ae6e2de commit 778bbc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/HTTP/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Rubix\Server\HTTP\Middleware\Server\AccessLogGenerator;
use Rubix\Server\HTTP\Middleware\Server\BasicAuthenticator;
use Rubix\Server\Services\Caches\InMemoryCache;
use Rubix\Server\Loggers\File;
use Rubix\ML\Other\Loggers\Screen;

$generator = new Agglomerate([
'red' => new Blob([255, 0, 0], 10.0),
Expand All @@ -23,7 +23,7 @@

$estimator->train($dataset);

$logger = new File('server.log');
$logger = new Screen('server.log');

$server = new HTTPServer('127.0.0.1', 8000, null, [
new AccessLogGenerator($logger),
Expand Down

0 comments on commit 778bbc5

Please sign in to comment.