Skip to content

Commit 5228cc4

Browse files
authored
Update README.md
1 parent 30ab9bf commit 5228cc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Simple logging system suitable with PsrLog.
1616

1717
## To use this logger write to composer.json: ##
1818

19-
```
19+
```json
2020
{
2121
"repositories": [
2222
{
@@ -33,11 +33,11 @@ Simple logging system suitable with PsrLog.
3333
## And add text below to your project:
3434

3535
Use it with autoloader PSR-4:
36-
```
36+
```php
3737
use smalex86\logger\Logger;
3838
```
3939
If you want to use dynamic object suitable with Psr\Log\LoggerInterface write to project these commands:
40-
```
40+
```php
4141
$logger = new Logger();
4242
$logger->routeList->attach(new smalex86\logger\route\FileRoute([
4343
'isEnabled' => true,
@@ -76,7 +76,7 @@ $logger->info('info', ['class'=>'Logger', 'method'=>'getName', '38']); // PsrLog
7676
```
7777

7878
### Some examples ###
79-
```
79+
```php
8080
$logger->emergency('emergency test', ['test'=>'value', '32']);
8181
$logger->alert('alert test', ['test'=>'value', 1=>'33']);
8282
$logger->critical('critical test');

0 commit comments

Comments
 (0)