Skip to content

Commit

Permalink
Fixed README
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Gorbylev committed Mar 10, 2015
1 parent 078edf3 commit 795a82a
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,15 @@ use Bankiru\MonologLumberjack\LumberjackHandler;
use Bankiru\MonologLumberjack\LumberjackFormatter;
use Ekho\Logstash\Lumberjack;
$lumberjackHandler = new LumberjackHandler(
new Lumberjack\Client(
new Lumberjack\SecureSocket(
'127.0.0.1', // logstash host
2323, // logstash lumberjack input port
array(
'ssl_cafile' => 'path/to/certificate.crt',
)
),
new Lumberjack\Encoder(),
5000 // window size
)
Logger::INFO, // log level
true // bubble
$lumberjackHandler = new LumberjackHandler(Logger::INFO, true);
$lumberjackHandler->init(
'127.0.0.1',
2323,
'path/to/certificate.crt',
[
'window_size' => 5000,
]
);
$lumberjackHandler->setFormatter(new LumberjackFormatter('my_app_name'));
$log = new Logger('name');
Expand Down

0 comments on commit 795a82a

Please sign in to comment.