ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
Slim_Log Class Reference
+ Collaboration diagram for Slim_Log:

Public Member Functions

 __construct ()
 Constructor.
 setEnabled ($enabled)
 Enable or disable logging.
 isEnabled ()
 Is logging enabled?
 debug ($object)
 Log debug message.
 info ($object)
 Log info message.
 warn ($object)
 Log warn message.
 error ($object)
 Log error message.
 fatal ($object)
 Log fatal message.
 setLogger ($logger)
 Set Logger.
 getLogger ()
 Get Logger.

Protected Attributes

 $logger
 $enabled

Detailed Description

Definition at line 53 of file Log.php.

Constructor & Destructor Documentation

Slim_Log::__construct ( )

Constructor.

Definition at line 68 of file Log.php.

{
$this->enabled = true;
}

Member Function Documentation

Slim_Log::debug (   $object)

Log debug message.

Parameters
mixed$object
Returns
mixed|false What the Logger returns, or false if Logger not set or not enabled

Definition at line 98 of file Log.php.

References isEnabled().

{
return isset($this->logger) && $this->isEnabled() ? $this->logger->debug($object) : false;
}

+ Here is the call graph for this function:

Slim_Log::error (   $object)

Log error message.

Parameters
mixed$object
Returns
mixed|false What the Logger returns, or false if Logger not set or not enabled

Definition at line 125 of file Log.php.

References isEnabled().

{
return isset($this->logger) && $this->isEnabled() ? $this->logger->error($object) : false;
}

+ Here is the call graph for this function:

Slim_Log::fatal (   $object)

Log fatal message.

Parameters
mixed$object
Returns
mixed|false What the Logger returns, or false if Logger not set or not enabled

Definition at line 134 of file Log.php.

References isEnabled().

{
return isset($this->logger) && $this->isEnabled() ? $this->logger->fatal($object) : false;
}

+ Here is the call graph for this function:

Slim_Log::getLogger ( )

Get Logger.

Returns
mixed

Definition at line 151 of file Log.php.

References $logger.

{
return $this->logger;
}
Slim_Log::info (   $object)

Log info message.

Parameters
mixed$object
Returns
mixed|false What the Logger returns, or false if Logger not set or not enabled

Definition at line 107 of file Log.php.

References isEnabled().

{
return isset($this->logger) && $this->isEnabled() ? $this->logger->info($object) : false;
}

+ Here is the call graph for this function:

Slim_Log::isEnabled ( )

Is logging enabled?

Returns
bool

Definition at line 89 of file Log.php.

References $enabled.

Referenced by debug(), error(), fatal(), info(), and warn().

{
}

+ Here is the caller graph for this function:

Slim_Log::setEnabled (   $enabled)

Enable or disable logging.

Parameters
bool$enabled
Returns
void

Definition at line 77 of file Log.php.

References $enabled.

{
if ( $enabled ) {
$this->enabled = true;
} else {
$this->enabled = false;
}
}
Slim_Log::setLogger (   $logger)

Set Logger.

Parameters
mixed$logger
Returns
void

Definition at line 143 of file Log.php.

References $logger.

{
$this->logger = $logger;
}
Slim_Log::warn (   $object)

Log warn message.

Parameters
mixed$object
Returns
mixed|false What the Logger returns, or false if Logger not set or not enabled

Definition at line 116 of file Log.php.

References isEnabled().

{
return isset($this->logger) && $this->isEnabled() ? $this->logger->warn($object) : false;
}

+ Here is the call graph for this function:

Field Documentation

Slim_Log::$enabled
protected

Definition at line 63 of file Log.php.

Referenced by isEnabled(), and setEnabled().

Slim_Log::$logger
protected

Definition at line 58 of file Log.php.

Referenced by getLogger(), and setLogger().


The documentation for this class was generated from the following file: