Just in case someone searches and finds it, I decided that I should share what I learned.
The answer I came up with is to create a class called Log in your designated namespace. To simplify the task, I just set my class to the extension \ Psr \ Log \ AbstractLogger. Since I did this, I just had to add a method called log with parameters:
$ level, $ message, array $ context = array ()
If you do not want this, simply create a class that has all the methods in AbstractLogger, and then set it to impression \ Psr \ Log \ LoggerInterface
What is it.
source share