From 42c9f91b24e1b81057d5a31a1d0e7fa4c1c3c445 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 9 Sep 2017 17:56:58 +0200 Subject: [PATCH] Update Log:1.0 notice --- notice/log/1.0.md | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/notice/log/1.0.md b/notice/log/1.0.md index 2ab9e4d..e5aa391 100644 --- a/notice/log/1.0.md +++ b/notice/log/1.0.md @@ -1,7 +1,8 @@ ```yaml module: log version: 1.0 -requires: null +requires: + - filedriver: 1.0 ``` Overview @@ -23,17 +24,7 @@ Log files are located at `/build/log/log/{logfile}.php`. Usage ---- -> 1. Include the autoloader - -```php - 2. Load the `Log` class +> ### 1. Load the `Log` class ```php 3. Fetch the log file you want (_"error"_ in this example) +> ### 2. Select the log file you want ```php 3. log something on a specific log file (_"error"_ in this example) +Note: If you do not give any argument to the `Log::get` method, it will use `default` as default. + +> ### 3. log something on a specific log file (_"error"_ in this example) ```php log('some message', 'optional_tag'); - ... ``` + +Note: If the `message` argument is missing, it will be `...` by default, the tag if not set will be `default`.