We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

FR: Change EE's logger to use PSR3

Developer Preview

Brian Litzinger's avatar
Brian Litzinger
693 posts
7 years ago
Brian Litzinger's avatar Brian Litzinger

… and provide an easy way to change the logging destination, e.g. default to the database, but optionally log to a file.

We have several instances of ee()->logger->developer(”) in our custom add-on’s for jamf.com, which can be changed easily, but if any 3rd party add-ons are also logging to it, we have to modify those add-ons if we want to log to a file so we can use Sumo Logic. Being able to universally change logging destinations via a config option, but retaining a single interface to log messages would be nice.

edit: When I wrote this I was looking at EE3’s codebase, and now I see a File logger service in EE4, but that seems like a missed opportunity to support interoperability being that its a custom logger and doesn’t follow PSR3.

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
7 years ago
Kevin Cupp's avatar Kevin Cupp

Thanks for the suggestion! Real talk, it’s unlikely this will be a priority for us any time soon, it’s just too much work for not enough impact, but if we end up needing re-implement logging, we can definitely keep it in mind to refer to PSR3 for guidance.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.