Process Logging
- class supervisor.rpcinterface.SupervisorNamespaceRPCInterface(supervisord)
- readProcessStdoutLog(name, offset, length)
Read length bytes from name’s stdout log starting at offset
@param string name the name of the process (or ‘group:name’)@param int offset offset to start reading from.@param int length number of bytes to read from the log.@return string result Bytes of log
- readProcessStderrLog(name, offset, length)
Read length bytes from name’s stderr log starting at offset
@param string name the name of the process (or ‘group:name’)@param int offset offset to start reading from.@param int length number of bytes to read from the log.@return string result Bytes of log
- tailProcessStdoutLog(name, offset, length)
Provides a more efficient way to tail the (stdout) log thanreadProcessStdoutLog(). Use readProcessStdoutLog() to readchunks and tailProcessStdoutLog() to tail.
Requests (length) bytes from the (name)’s log, starting at(offset). If the total log size is greater than (offset +length), the overflow flag is set and the (offset) isautomatically increased to position the buffer at the end ofthe log. If less than (length) bytes are available, themaximum number of available bytes will be returned. (offset)returned is always the last offset in the log +1.
@param string name the name of the process (or ‘group:name’)@param int offset offset to start reading from@param int length maximum number of bytes to return@return array result [string bytes, int offset, bool overflow]
- tailProcessStderrLog(name, offset, length)
Provides a more efficient way to tail the (stderr) log thanreadProcessStderrLog(). Use readProcessStderrLog() to readchunks and tailProcessStderrLog() to tail.
Requests (length) bytes from the (name)’s log, starting at(offset). If the total log size is greater than (offset +length), the overflow flag is set and the (offset) isautomatically increased to position the buffer at the end ofthe log. If less than (length) bytes are available, themaximum number of available bytes will be returned. (offset)returned is always the last offset in the log +1.
@param string name the name of the process (or ‘group:name’)@param int offset offset to start reading from@param int length maximum number of bytes to return@return array result [string bytes, int offset, bool overflow]