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`.