Discussion:
[Supervisor-users] Individual logging for processes when using numprocs
Cody Robertson
2011-10-17 17:43:22 UTC
Permalink
I can't seem to figure out if you can have a group of processes using
numproc each have their own logfile. When using stderr_logfile and
stdout_logfile it'll just create one monolithic file and not one for
each process.

Unfortunately I haven't found any documentation to clarify if this is
even possible. Is the only option to declare each process separately in
the supervisord.conf?

This is for Supervisord 3.0a10

Thanks!
Mike Naberezny
2011-10-17 22:24:35 UTC
Permalink
Hi Cody,
I can't seem to figure out if you can have a group of processes using numproc
each have their own logfile. When using stderr_logfile and stdout_logfile
it'll just create one monolithic file and not one for each process.
Unfortunately I haven't found any documentation to clarify if this is even
possible. Is the only option to declare each process separately in the
supervisord.conf?
You can use the "process_num" expansion in the filename.

Please see:
http://supervisord.org/configuration.html#program-x-section-settings

Regards,
Mike
--
Mike Naberezny
Maintainable Software
http://maintainable.com
Cody Robertson
2011-10-17 22:27:01 UTC
Permalink
Post by Mike Naberezny
Hi Cody,
I can't seem to figure out if you can have a group of processes using numproc
each have their own logfile. When using stderr_logfile and
stdout_logfile
it'll just create one monolithic file and not one for each process.
Unfortunately I haven't found any documentation to clarify if this is even
possible. Is the only option to declare each process separately in the
supervisord.conf?
You can use the "process_num" expansion in the filename.
http://supervisord.org/configuration.html#program-x-section-settings
Regards,
Mike
Ah, some reason I didn't even think to try that. In hindsight that makes
sense.

Thanks!

Loading...