From 148a26ae5ab3dbda10e18dfe13295cb0d6142902 Mon Sep 17 00:00:00 2001 From: Abdouni Abdelkarim Date: Mon, 1 Jun 2020 10:39:40 +0200 Subject: [PATCH] Update 01-usage.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello, I just update a code to use the array short syntax. And i also correct highlight syntax. 😉 --- doc/01-usage.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/01-usage.md b/doc/01-usage.md index 59b9ae76..78ba83dd 100644 --- a/doc/01-usage.md +++ b/doc/01-usage.md @@ -125,7 +125,7 @@ record: ```php info('Adding a new user', array('username' => 'Seldaek')); +$logger->info('Adding a new user', ['username' => 'Seldaek']); ``` Simple handlers (like the StreamHandler for instance) will simply format @@ -206,6 +206,8 @@ write your own (e.g. a multiline text file for human-readable output). To configure a predefined formatter class, just set it as the handler's field: ```php +