OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

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

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

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • 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 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)

The forum ‘OroCRM’ is closed to new topics and replies.

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

Yes No