File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 53
53
* Calling this method again with a logger that has already been added will have
54
54
* no effect.
55
55
*/
56
- function addLogger (LoggerInterface $ logger ): void
56
+ function add_logger (LoggerInterface $ logger ): void
57
57
{
58
58
PsrLogAdapter::addLogger ($ logger );
59
59
}
@@ -64,7 +64,7 @@ function addLogger(LoggerInterface $logger): void
64
64
* Calling this method with a logger that has not been added will have no
65
65
* effect.
66
66
*/
67
- function removeLogger (LoggerInterface $ logger ): void
67
+ function remove_logger (LoggerInterface $ logger ): void
68
68
{
69
69
PsrLogAdapter::removeLogger ($ logger );
70
70
}
Original file line number Diff line number Diff line change 8
8
use Psr \Log \LoggerInterface ;
9
9
10
10
use function func_get_args ;
11
- use function MongoDB \addLogger ;
12
- use function MongoDB \removeLogger ;
11
+ use function MongoDB \add_logger ;
12
+ use function MongoDB \remove_logger ;
13
13
14
14
/** @see https://jira.mongodb.org/browse/DRIVERS-2583 */
15
15
class LogNonGenuineHostTest extends TestCase
@@ -20,12 +20,12 @@ public function setUp(): void
20
20
{
21
21
$ this ->logger = $ this ->createTestPsrLogger ();
22
22
23
- addLogger ($ this ->logger );
23
+ add_logger ($ this ->logger );
24
24
}
25
25
26
26
public function tearDown (): void
27
27
{
28
- removeLogger ($ this ->logger );
28
+ remove_logger ($ this ->logger );
29
29
}
30
30
31
31
/** @dataProvider provideCosmosUris */
Original file line number Diff line number Diff line change 11
11
use Psr \Log \LogLevel ;
12
12
13
13
use function func_get_args ;
14
- use function MongoDB \addLogger ;
14
+ use function MongoDB \add_logger ;
15
15
use function MongoDB \Driver \Monitoring \mongoc_log ;
16
- use function MongoDB \removeLogger ;
16
+ use function MongoDB \remove_logger ;
17
17
use function sprintf ;
18
18
19
19
class PsrLogAdapterTest extends BaseTestCase
@@ -39,12 +39,12 @@ public function testAddAndRemoveLoggerFunctions(): void
39
39
mongoc_log (LogSubscriber::LEVEL_INFO , 'domain1 ' , 'info1 ' );
40
40
PsrLogAdapter::writeLog (PsrLogAdapter::INFO , 'domain2 ' , 'info2 ' );
41
41
42
- addLogger ($ logger );
42
+ add_logger ($ logger );
43
43
44
44
mongoc_log (LogSubscriber::LEVEL_INFO , 'domain3 ' , 'info3 ' );
45
45
PsrLogAdapter::writeLog (PsrLogAdapter::INFO , 'domain4 ' , 'info4 ' );
46
46
47
- removeLogger ($ logger );
47
+ remove_logger ($ logger );
48
48
49
49
mongoc_log (LogSubscriber::LEVEL_INFO , 'domain5 ' , 'info5 ' );
50
50
PsrLogAdapter::writeLog (PsrLogAdapter::INFO , 'domain6 ' , 'info6 ' );
You can’t perform that action at this time.
0 commit comments