move or disable cron loging

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamie
    Senior Member
    • Aug 2025
    • 226

    #1

    move or disable cron loging

    Hello,

    It would be most helpful if I could disable or move to another file the logs created by cron. When I try to debug my system, the useful info is utterly obscured by the cron output.

    thanks
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9639

    #2
    Hi,

    As we use Monolog library for logging, you can create a custom handler that will log messages separately if certain conditions met. E.g. if the process is run from CLI.

    Comment

    • jamie
      Senior Member
      • Aug 2025
      • 226

      #3
      That is wonderful! is there any documentation on this?

      i take it cron runs from cli? is there some way to split that out from other cli activities?

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9639

        #4


        The handler used by default: https://github.com/espocrm/espocrm/b...ileHandler.php

        Comment


        • jamie
          jamie commented
          Editing a comment
          ahhh thanks mate, hope you had a great weekend
      Working...