File tree Expand file tree Collapse file tree 1 file changed +4
-24
lines changed Expand file tree Collapse file tree 1 file changed +4
-24
lines changed Original file line number Diff line number Diff line change 1
1
Antidot Logger
2
2
==============
3
3
4
- [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/?branch=master )
5
- [ ![ Code Coverage] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/?branch=master )
6
- [ ![ Build Status] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/badges/build.png?b=master )] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/build-status/master )
7
- [ ![ Code Intelligence Status] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/badges/code-intelligence.svg?b=master )] ( https://scrutinizer-ci.com/code-intelligence )
4
+ [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/?branch=2.x.x )
5
+ [ ![ Code Coverage] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/?branch=2.x.x )
6
+ [ ![ Build Status] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/badges/build.png?b=master )] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/build-status/2.x.x )
7
+ [ ![ Code Intelligence Status] ( https://scrutinizer-ci.com/g/antidot-framework/antidot-logger/badges/code-intelligence.svg?b=2.x.x )] ( https://scrutinizer-ci.com/code-intelligence )
8
8
![ Maintainability] ( https://api.codeclimate.com/v1/badges/dd5349c19f7991e3fa95/maintainability )
9
9
10
10
Application PSR-15 logger middleware:
@@ -75,23 +75,3 @@ class RequestLoggerMiddlewareFactory
75
75
}
76
76
77
77
````
78
-
79
- ### Using factory:
80
-
81
- #### Config
82
-
83
- See [ wshafer/psr11-monolog] ( https://github.com/wshafer/psr11-monolog ) for complete config reference, it allows using some different handlers
84
-
85
- #### factory
86
-
87
- ```` php
88
- <?php
89
-
90
- use Antidot\Logger\Container\MonologFactory;
91
- use Psr\Log\LoggerInterface;
92
-
93
- $factory = new MonologFactory();
94
-
95
- $logger = $factory->__invoke($container);
96
- $container->set(LoggerInterface::class, $logger);
97
- ````
You can’t perform that action at this time.
0 commit comments