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]

clearProcessLogs(name)

Clear the stdout and stderr logs for the named process andreopen them.

@param string name The name of the process (or ‘group:name’)@return boolean result Always True unless error

clearAllProcessLogs()

Clear all process log files

@return array result An array of process status info structs