Skip to content

Commit

Permalink
Merge pull request #4 from minicli/feature/logs
Browse files Browse the repository at this point in the history
Add logging support
  • Loading branch information
erikaheidi authored Jun 28, 2023
2 parents a2b4bf0 + 3af711c commit 1b3fc1f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"require": {
"php": ">=8.1",
"minicli/minicli": "^4.1",
"minicli/minicli": "^4.2",
"minicli/command-help": "^1.0",
"nunomaduro/termwind": "^1.15",
"league/plates": "^3.5"
Expand Down
23 changes: 23 additions & 0 deletions config/logging.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

declare(strict_types=1);

use Minicli\Logging\LogLevel;
use Minicli\Logging\LogType;

return [
/****************************************************************************
* Logging Configuration
* --------------------------------------------------------------------------
*
* This configuration defines the logging settings for your application.
*****************************************************************************/

'logging' => [
'type' => LogType::SINGLE->value,

'level' => LogLevel::INFO->value,

'timestamp_format' => 'Y-m-d H:i:s',
],
];
2 changes: 2 additions & 0 deletions logs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore

0 comments on commit 1b3fc1f

Please sign in to comment.