OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

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

This topic contains 3 replies, has 2 voices, and was last updated by  Makheshvara 3 months ago.

  • Creator
    Topic
  • #37855

    Makheshvara
    Participant

    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 https://symfony.com/doc/2.8/logging/formatter.html.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

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

Yes No