Skip to content

Commit f1b20c7

Browse files
authored
Merge pull request #10 from minicli/feature/logs
Add logging support
2 parents 774a107 + 22fe245 commit f1b20c7

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"require": {
1313
"php": ">=8.1",
14-
"minicli/minicli": "^4.1.0",
14+
"minicli/minicli": "^4.2",
1515
"minicli/command-help": "^1.0"
1616
},
1717
"require-dev": {

config/logging.php

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Minicli\Logging\LogLevel;
6+
use Minicli\Logging\LogType;
7+
8+
return [
9+
/****************************************************************************
10+
* Logging Configuration
11+
* --------------------------------------------------------------------------
12+
*
13+
* This configuration defines the logging settings for your application.
14+
*****************************************************************************/
15+
16+
'logging' => [
17+
'type' => LogType::SINGLE->value,
18+
19+
'level' => LogLevel::INFO->value,
20+
21+
'timestamp_format' => 'Y-m-d H:i:s',
22+
],
23+
];

logs/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

0 commit comments

Comments
 (0)