class documentation

class ZMSLog(ZMSItem.ZMSItem): (source)

Constructor: ZMSLog(copy_to_stdout, logged_entries)

View In Hierarchy

ZMI-accessible log viewer and remote filesystem utility.

Method __init__ Initialize with stdout-mirroring option and active severity list.
Method get_log_filename Return the filesystem path of the active Zope event log file.
Method getLOG Stream the active Zope event log file as a plain-text download.
Method getParentDir Return the parent directory component of a filesystem path.
Method getPath Return the filesystem path from the request, defaulting to the package home.
Method hasSeverity Return whether the given severity level is currently being logged.
Method LOG Emit one log record at the given severity and optionally echo to stdout.
Method manage_index_html Serve a binary file from the remote filesystem as an inline download.
Method manage_options Return ZMI tabs for this item.
Method manage_submit Handle remote-filesystem actions: execute a shell command or upload a file.
Method readDir Return a directory listing for the given filesystem path.
Method setProperties Persist logging settings submitted from the ZMI form.
Method tail_event_log Return the last linesback lines of the active event log.
Constant LOGGER Undocumented
Class Variable manage_main Undocumented
Class Variable manage_remote Undocumented
Class Variable meta_type Undocumented
Class Variable zmi_icon Undocumented
Instance Variable copy_to_stdout Undocumented
Instance Variable id Undocumented
Instance Variable logged_entries Undocumented
Instance Variable tail_event_log_linesback Undocumented
def __init__(self, copy_to_stdout=False, logged_entries=['ERROR']): (source)

Initialize with stdout-mirroring option and active severity list.

def get_log_filename(self): (source)

Return the filesystem path of the active Zope event log file.

def getLOG(self, REQUEST, RESPONSE=None): (source)

Stream the active Zope event log file as a plain-text download.

def getParentDir(self, path): (source)

Return the parent directory component of a filesystem path.

def getPath(self, REQUEST): (source)

Return the filesystem path from the request, defaulting to the package home.

def hasSeverity(self, severity): (source)

Return whether the given severity level is currently being logged.

def LOG(self, severity, info): (source)

Emit one log record at the given severity and optionally echo to stdout.

def manage_index_html(self, REQUEST, RESPONSE): (source)

Serve a binary file from the remote filesystem as an inline download.

def manage_options(self): (source)

Return ZMI tabs for this item.

def manage_submit(self, REQUEST, RESPONSE): (source)

Handle remote-filesystem actions: execute a shell command or upload a file.

def readDir(self, path): (source)

Return a directory listing for the given filesystem path.

def setProperties(self, REQUEST, RESPONSE): (source)

Persist logging settings submitted from the ZMI form.

def tail_event_log(self, linesback=100, returnlist=True): (source)

Return the last linesback lines of the active event log.

Undocumented

Value
logging.getLogger('ZMS')
manage_main = (source)

Undocumented

manage_remote = (source)

Undocumented

meta_type: str = (source)

Undocumented

zmi_icon: str = (source)

Undocumented

copy_to_stdout = (source)

Undocumented

Undocumented

logged_entries = (source)

Undocumented

tail_event_log_linesback = (source)

Undocumented