User-configurable Log File Rotation by maximum size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tothewine
    Active Community Member
    • Jan 2018
    • 373

    User-configurable Log File Rotation by maximum size

    Does Espo support rotation by size combined with date ? Due to some log spam I got a 100gb+ file that is hard to work with without splitting it (but the server has no more space). If espo supported rotation after 1GB I would have 100 files named espo-2019-11-11-r1.log to espo-2019-11-11-r100.log which would be faster to grep for problems since it would yield results every time a file is read.

    See the configuration example in this post: https://stackoverflow.com/a/55781644/3389585
    Last edited by tothewine; 11-11-2019, 09:50 AM.
  • bandtank
    Active Community Member
    • Mar 2017
    • 379

    #2
    FYI for anyone who needs the same thing: Espo now supports the requested behavior through the implementation of custom log handlers. Here is a tutorial.

    Comment

    Working...