File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 44
55namespace Sentry \SentryBundle \Monolog ;
66
7+ use Monolog \Formatter \FormatterInterface ;
78use Monolog \Handler \HandlerInterface ;
89use Monolog \Logger as MonologLogger ;
910use Sentry \Monolog \CompatibilityLogLevelTrait ;
@@ -53,4 +54,27 @@ public function close(): void
5354 {
5455 $ this ->logsHandler ->close ();
5556 }
57+
58+ public function pushProcessor ($ callback ): void
59+ {
60+ $ this ->logsHandler ->pushProcessor ($ callback );
61+ }
62+
63+ /**
64+ * @return callable
65+ */
66+ public function popProcessor ()
67+ {
68+ return $ this ->logsHandler ->popProcessor ();
69+ }
70+
71+ public function setFormatter (FormatterInterface $ formatter ): void
72+ {
73+ $ this ->logsHandler ->setFormatter ($ formatter );
74+ }
75+
76+ public function getFormatter (): FormatterInterface
77+ {
78+ return $ this ->logsHandler ->getFormatter ();
79+ }
5680}
You can’t perform that action at this time.
0 commit comments