Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
flotzilla committed Apr 14, 2020
1 parent ec93ba3 commit 27c64cd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ use \flotzilla\Logger\Formatter\SimpleLineFormatter;

$logger = new Logger();

//output will be written to /tmp/main-logs.log
//output will be written to /tmp/main-logs.log
$channel = new Channel('logs-all', [
new FileHandler(new SimpleLineFormatter(), '/tmp', 'main-logs')
]);
Expand Down Expand Up @@ -82,11 +82,6 @@ Channels
// disable channel for writing
$logger->getChannel('debug')->setEnabled(false);

// add new handler
$logger->getChannel('test')->addHandler(
new FileHandler( new SimpleLineFormatter(), '/tmp', 'main-logs')
);

// set maximal log level for filtering
$logger->getChannel('test')->setMaxLogLevel('error');

Expand Down

0 comments on commit 27c64cd

Please sign in to comment.