flow-development-collection icon indicating copy to clipboard operation
flow-development-collection copied to clipboard

FEATURE: Add fromClassAndMethodName() to LogEnvironment

Open kdambekalns opened this issue 1 year ago • 2 comments

This does some code cleanup and adds a new method fromClassAndMethodName($className, $methodName) to the LogEnvironment.

It be used like this:

LogEnvironment::fromClassAndMethodName(__CLASS__, __METHOD__)

and will return useful data – as opposed to LogEnvironment::fromMethodName(__METHOD__), which only works for static methods (SomeClass::someMethod or closures).

Checklist

  • [ ] Code follows the PSR-2 coding style
  • [ ] Tests have been created, run and adjusted as needed
  • [ ] The PR is created against the lowest maintained branch
  • [ ] Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • [ ] Reviewer - The first section explains the change briefly for change-logs
  • [ ] Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

kdambekalns avatar Nov 28 '24 17:11 kdambekalns

Why is this a task and not a new (tiny) feature?

robertlemke avatar Dec 03 '24 06:12 robertlemke

Why is this a task and not a new (tiny) feature?

So I can sneak it into 8.3… 😎

kdambekalns avatar Dec 04 '24 07:12 kdambekalns