greeny\nette-slack-logger DI 2.4

about a month ago

PipBoy
Member | 14
+
0
-

Hello,
I'm using nette-slack-logger with Nette 2.4.

Documentation says: “You can also set custom handlers for logger. Just get your logger instance through DI or by calling Tracy\Debugger::getLogger() and use method addHandler to add your custom handler.”

but when I'm trying to do that, Tracy\Debugger::getLogger() doesn't returns SlackLogger instance and invoking it by DI causes not found (did you registrer it in the configuration file?) exception.

However, SlackLogger is working.

How can I invoke it and call addHandler in Nette 2.4?

about a month ago

PipBoy
Member | 14
+
0
-

Ok, my bad. I've tried it on localhost, but the functional instance was on server.

Ergo, I had it turned off on the local.