Seldaek / monolog

Sends your logs to files, sockets, inboxes, databases and various web services
https://seldaek.github.io/monolog/
MIT License
20.95k stars 1.9k forks source link

`HandlerInterface::isHandling` could have better naming #1900

Open javaDeveloperKid opened 1 month ago

javaDeveloperKid commented 1 month ago

Hi, I have a little problem with HandlerInterface::isHandling method naming and I'm often mislead by it.

For me isHandling means (the first is my default, the second is alternative understanding)

  1. this handler is handling a log record at the moment. OR
  2. this handler is handling a log record but not in a sense that in does it at the moment but in a sense that this log record belongs only to this handler.

However what it really does is that this handler supports (i.e. will log) this log record. I know the doc block on the method gives some explaination but one can't remember all the doc blocks and it's the class API (e.g. method naming) what a developer works with daily so better method naming should be our priority.

I hope I've described my POV understandable.

I know the naming change would be a big BC break so I'm not forcing to change it right away. It's more like a question for maintainers whether they agree with my POV and maybe in some future major release this could be done.