Class we_util_Log

Description

static logging class for logging messages

Located in /util/Log.php (line 25)


	
			
Class Constant Summary
Variable Summary
static Zend_Log $_logfile
static Zend_Log $_syslog
Method Summary
static void checkCreateLog ([ $filename = ""])
static void errorLog ([mixed $message = ""])
static bool isActive ()
static bool log ([string $message = ""], [$filename $errorlevel = 7], [ $filename = "syslog"])
static void memusage ([string $message = ""])
static bool syslog ([string $message = ""], [int $errorlevel = 7])
Variables
static Zend_Log $_logfile = null (line 38)
  • var: object for other logfiles than syslog.php
  • access: protected
static Zend_Log $_syslog = null (line 33)
  • var: object for syslog.php
  • access: protected
Methods
static method checkCreateLog (line 159)

checks if the used log file already exists.

creates the missinglog file in webEdition/log/ with php exit statement at the beginning and .php suffix if it does not exist already.

  • access: public
static void checkCreateLog ([ $filename = ""])
  • $filename
static method errorLog (line 116)

logs messages to php errorlog

  • access: public
static void errorLog ([mixed $message = ""])
  • mixed $message: message to write to errorlog $message can be a string as well as an array or an object
static method isActive (line 187)

checks if either the system wide constant ENABLE_LOGGING or the class constant SELF::ENABLE_LOGGING is set to (bool)true

  • return: true/false
  • access: public
static bool isActive ()
static method log (line 55)

logs messages with debuglevel via Zend_Log to webEdition logfile "syslog.php"

  • return: false if logging to file fails (mostly because of insufficient file access rights)
  • access: public
static bool log ([string $message = ""], [$filename $errorlevel = 7], [ $filename = "syslog"])
  • string $message: message to write to log file
  • $filename $errorlevel: optional parameter to write the message to another file than "syslog.php"
  • $filename
static method memusage (line 141)

logs current memory usage to syslog

  • access: public
static void memusage ([string $message = ""])
  • string $message: optional text message for description
static method syslog (line 101)

static function to log messages with errorlevel to the system's syslog.

static bool syslog ([string $message = ""], [int $errorlevel = 7])
  • string $message: message to write to log file
  • int $errorlevel: priority code defined in Zend_Log: LOG_EMERG = 0; // Emergency: system is unusable LOG_ALERT = 1; // Alert: action must be taken immediately LOG_CRIT = 2; // Critical: critical conditions LOG_ERR = 3; // Error: error conditions LOG_WARNING = 4; // Warning: warning conditions LOG_NOTICE = 5; // Notice: normal but significant condition LOG_INFO = 6; // Informational: informational messages LOG_DEBUG = 7; // Debug: debug messages
Class Constants
ENABLE_LOGGING = true (line 28)

Documentation generated on Mon, 01 Sep 2008 11:35:42 +0200 by phpDocumentor 1.4.0