\FireGento_MageMonitoring_Model_Widget_Log_Tail

class FireGento_MageMonitoring_Model_Widget_Log_Tail

Synopsis

class FireGento_MageMonitoring_Model_Widget_Log_Tail extends FireGento_MageMonitoring_Model_Widget_Log_Abstract implements FireGento_MageMonitoring_Model_Widget,FireGento_MageMonitoring_Model_WatchDog {
  • // constants
  • const CONFIG_LOG_FILE = 'file_path';
  • const CONFIG_LOG_COLOR = 'color';
  • // Inherited members from FireGento_MageMonitoring_Model_Widget_Log_Abstract
  • protected integer $_defLogLines;
  • protected string $_regexLogstamp;
  • // Inherited members from FireGento_MageMonitoring_Model_Widget_AbstractGeneric
  • protected string $_defWidgetTitle;
  • // Inherited methods from FireGento_MageMonitoring_Model_Widget_AbstractGeneric
  • public void initConfig()
  • public string getName()
  • protected void _getNodeName()
}

Hierarchy

Tasks

Line Task
609 do proper merge, things will go probably south for code below.

Constants

Name Value
CONFIG_LOG_FILE 'file_path'
CONFIG_LOG_COLOR 'color'
CONFIG_LAST_LOG_ENTRY 'last_log_entry'
CONFIG_LOG_LINES 'linecount'
CONFIG_WATCHDOG_ACTIVE 'cron/enabled'
CONFIG_WATCHDOG_BARKON 'cron/barkon'
CONFIG_WATCHDOG_CRON 'cron/schedule'
CONFIG_WATCHDOG_MAILTO 'cron/mail_to'
CONFIG_DOGS_DISABLED 'dogs/disabled'
CONFIG_DOGS_MAILTO 'dogs/mail_to'
DEFAULT_MAILTO 'general'
DEFAULT_DISABLED 1
CONFIG_WIDGET_TITLE 'title'
CONFIG_START_COLLAPSED 'collapsed'
CONFIG_DISPLAY_PRIO 'display_prio'
CONFIG_PRE_KEY 'widgets'
CALLBACK 'cb:'

Members

protected

  • $_config
  • $_dbConfigKey
  • $_defDisplayPrio
  • $_defDisplayPrio
  • $_defLogColor
  • $_defLogFile
  • $_defLogLines
  • $_defLogLines
  • $_defStartCollapsed
  • $_defWatchdogActive
  • $_defWatchdogBarkon
  • $_defWatchdogCron
  • $_defWatchdogMailto
  • $_defWidgetTitle
  • $_defWidgetTitle
  • $_defaultConfig
  • $_output
  • $_regexLogstamp
  • $_renderer
    @var FireGento_MageMonitoring_Block_Widget_Multi_Renderer_Abstract $_renderer
  • $_report
  • $_tabId

Methods

protected

public

Inherited from FireGento_MageMonitoring_Model_Widget_Log_Abstract

protected

  • extractNewLogEntries() — Returns log entries with timestamp after $from or false if $from is not found.
  • getLogTail() — Returns last lines of given $filePath.
  • newLogBlock() — Adds a tail -n row to widget output.
  • watchLog() — Compares last entry in $logIn with last saved timestamp and adds all log entries between the last logged or whole tail if the last saved timestamp is not found.

public

Inherited from FireGento_MageMonitoring_Model_Widget_Watchdog

public

Inherited from FireGento_MageMonitoring_Model_Widget_AbstractGeneric

protected

public

Inherited from FireGento_MageMonitoring_Model_Widget_Abstract

protected

public

History