move or disable cron loging

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

    #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
    • 9351

    #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.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • jamie
      Member
      • Aug 2025
      • 41

      #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
        • 9351

        #4


        The handler used by default: https://github.com/espocrm/espocrm/b...ileHandler.php
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment


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