Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums OroCRM How to override the file "Logger.php"?

This topic contains 0 replies, has 1 voice, and was last updated by  Makheshvara 5 days, 13 hours ago.

  • Creator
  • #37855


    Hi everyone,

    I came across a situation when it was necessary to add a certain word to the beginning of the journal, for example, “test”.

    What exactly and where to change the code in Logger I know. (The file, if I’m not mistaken, is in “vendor/monolog/monolog/src/Monolog/Logger.php”.)

    I also saw advice from a symphony, for example

    But there, if I understood correctly, the file “JsonFormatter”. Which I don’t need to change, probably.

    How can I access/override “Logger.php” which is one or two hierarchies higher? Or maybe you know another way to add text or a function to the beginning of the magazine?

    Any advice or suggestion will be important.

    Thank you.

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No
sso for www.magecore.comsso for oroinc.comsso for oroinc.desso for