Supervisor / supervisor

Supervisor process control system for Unix (supervisord)
http://supervisord.org
Other
8.46k stars 1.24k forks source link

Make dynamic log path for application #1478

Open AlekseiSaff opened 2 years ago

AlekseiSaff commented 2 years ago

It will be nice if can add a command into the log file path (and if it does not exist create it) i.e.

stderr_logfile=/home/lt/prod/apps/%(program_name)s/log/(%CURRENT_DATE%)/%(program_name)s.err.log

and CURRENT_DATE could be defined as (date +%Y%M%D) or any other format (bash or python command)

vzool commented 2 years ago

Or

stdout_logfile=/var/logs/%(program_name)/horizon-%(date).log

Will transform into this

 /var/logs/laravel/horizon-2022-06-19.log
vzool commented 2 years ago

1265

1351

lglhust commented 2 years ago

I have tried v3.3.1 and v4.4.2, but logfile name with timestamp added cannot work both. Is there a plan to support this feature ?
Thanks.

stlnkm commented 1 year ago

Sadly, I also need this feature but the issue is still open, random suffix is hard to find the newest log file.