Skip to content

Commit fe429f5

Browse files
authored
Merge pull request #2 from H0pex/hotfix/php-version
Version PHP switch to 7.4 and supporting Laravel has been removed
2 parents 46bee1c + df6c443 commit fe429f5

File tree

4 files changed

+8
-92
lines changed

4 files changed

+8
-92
lines changed

README.md

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# Hopex Logging
1+
# Simple data logging
22

33
<p>
44
<img alt="Package version" src="https://packages-api.hopex.ru/api/simplog/version/package">
55
<img alt="Package version" src="https://packages-api.hopex.ru/api/simplog/packagist/hopex/downloads">
66
<img alt="Package version" src="https://packages-api.hopex.ru/api/simplog/packagist/hopex/stars">
77
<img alt="PHP version" src="https://packages-api.hopex.ru/api/simplog/version/php">
8-
<img alt="Laravel version" src="https://packages-api.hopex.ru/api/simplog/version/laravel">
98
<img alt="License" src="https://packages-api.hopex.ru/api/simplog/license">
109
</p>
1110

@@ -17,28 +16,7 @@ The library contains a simple class, and it's facade, for simple data and except
1716
composer require hopex/simplog
1817
```
1918

20-
## Dependencies in Laravel
21-
22-
Provider and facades will be automatically registered, however you can manually add them to `config/app.php`.
23-
```php
24-
'providers' => [
25-
// ...
26-
Hopex\Simplog\Providers\ServiceProvider::class,
27-
],
28-
'aliases' => Facade::defaultAliases()->merge([
29-
// ...
30-
'Logger' => \Hopex\Simplog\Logger::class,
31-
])->toArray(),
32-
```
33-
34-
## Usage in Laravel
35-
36-
Simple data logging. Your data will be saved to a file `./public/logs/runtime/NameOfLogFile.log`:
37-
```php
38-
Logger::putData($data, 'NameOfLogFile');
39-
```
40-
41-
## Default usage
19+
## Usage
4220

4321
Simple data logging. Your data will be saved to a file `./logs/runtime/NameOfLogFile.log`:
4422
```php
@@ -56,6 +34,7 @@ saved along the path `./example/logs/MyLevel/NameOfLogFile.log`:
5634
->setLevel('MyLevel')
5735
->putData($data, 'NameOfLogFile');
5836
```
37+
5938
### Date and time format
6039

6140
Timezone default UTC and date format is `Y-m-d H:i:s`. You can also change the time format and time zone that are used inside the logging files:
@@ -101,6 +80,7 @@ Output log file `./logs/exceptions/2022.24.12.log`:
10180
}
10281
}
10382
```
83+
10484
### Common
10585

10686
The class has a built-in function `clearLevel` of cleaning the logging working directory

composer.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
"name": "hopex/simplog",
33
"description": "Simple data logging with customize directories.",
44
"type": "library",
5-
"keywords": ["php", "log", "logger"],
6-
"version": "1.0.3",
5+
"keywords": ["php", "log", "logger", "logging"],
6+
"version": "1.0.4",
77
"require": {
8-
"php": "^7.4||^8",
9-
"ext-json": "*",
10-
"illuminate/support": "^9.45"
8+
"php": "^7.4",
9+
"ext-json": "*"
1110
},
1211
"license": "MIT",
1312
"autoload": {

src/Facades/Logger.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/Providers/ServiceProvider.php

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)