2020namespace Surfnet \SamlBundle \Monolog ;
2121
2222use Psr \Log \LoggerInterface ;
23- use Surfnet \SamlBundle \Exception \RuntimeException ;
2423
2524/**
2625 * Decorates a PSR logger and adds information pertaining to a SAML request procedure to each message's context.
@@ -46,47 +45,47 @@ public function forAuthentication(string $requestId): self
4645 return $ logger ;
4746 }
4847
49- public function emergency ($ message , array $ context = []): void
48+ public function emergency (string | \ Stringable $ message , array $ context = []): void
5049 {
5150 $ this ->logger ->emergency ($ message , $ this ->modifyContext ($ context ));
5251 }
5352
54- public function alert ($ message , array $ context = []): void
53+ public function alert (string | \ Stringable $ message , array $ context = []): void
5554 {
5655 $ this ->logger ->alert ($ message , $ this ->modifyContext ($ context ));
5756 }
5857
59- public function critical ($ message , array $ context = []): void
58+ public function critical (string | \ Stringable $ message , array $ context = []): void
6059 {
6160 $ this ->logger ->critical ($ message , $ this ->modifyContext ($ context ));
6261 }
6362
64- public function error ($ message , array $ context = []): void
63+ public function error (string | \ Stringable $ message , array $ context = []): void
6564 {
6665 $ this ->logger ->error ($ message , $ this ->modifyContext ($ context ));
6766 }
6867
69- public function warning ($ message , array $ context = []): void
68+ public function warning (string | \ Stringable $ message , array $ context = []): void
7069 {
7170 $ this ->logger ->warning ($ message , $ this ->modifyContext ($ context ));
7271 }
7372
74- public function notice ($ message , array $ context = []): void
73+ public function notice (string | \ Stringable $ message , array $ context = []): void
7574 {
7675 $ this ->logger ->notice ($ message , $ this ->modifyContext ($ context ));
7776 }
7877
79- public function info ($ message , array $ context = []): void
78+ public function info (string | \ Stringable $ message , array $ context = []): void
8079 {
8180 $ this ->logger ->info ($ message , $ this ->modifyContext ($ context ));
8281 }
8382
84- public function debug ($ message , array $ context = []): void
83+ public function debug (string | \ Stringable $ message , array $ context = []): void
8584 {
8685 $ this ->logger ->debug ($ message , $ this ->modifyContext ($ context ));
8786 }
8887
89- public function log ($ level , $ message , array $ context = []): void
88+ public function log ($ level , string | \ Stringable $ message , array $ context = []): void
9089 {
9190 $ this ->logger ->log ($ level , $ message , $ this ->modifyContext ($ context ));
9291 }
0 commit comments