Where does supervisorctl tail
take the log information of a certain process from? How do I get a full log?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
From the command line help (
supervisorctl help tail
):So by default, the
tail
command tails the process stdout. If you need to get the full log, thestdout_logfile
option of the[program:x]
section determines where that is stored; there is astderr_logfile
option as well.If that option is not set or set to
AUTO
, a logfile will be created when the process starts, but cleaned up whenever supervisord restarts. This file is created in the directory set by the[supervisord]
childlogdir
option (which is your platform'sTMP
directory by default), and have a generated filename of the form<program-name>-<stdout|stderr>---<supervisor-identifier>-<6-random-characters>.log
, e.g.varnish-stdout---supervisor-AqY52e.log
.Thus, if you want to access the whole stdout log, you need to at the very least set the
childlogdir
option to a fixed directory to save you from having to search for the right temporary directory.