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
-
- 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;
}
Slim_Log::error |
( |
|
$object | ) |
|
Log error message.
- Parameters
-
- 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;
}
Slim_Log::fatal |
( |
|
$object | ) |
|
Log fatal message.
- Parameters
-
- 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;
}
Slim_Log::info |
( |
|
$object | ) |
|
Log info message.
- Parameters
-
- 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;
}
Slim_Log::setEnabled |
( |
|
$enabled | ) |
|
Enable or disable logging.
- Parameters
-
- Returns
- void
Definition at line 77 of file Log.php.
References $enabled.
{
$this->enabled = true;
} else {
$this->enabled = false;
}
}
Slim_Log::setLogger |
( |
|
$logger | ) |
|
Set Logger.
- Parameters
-
- Returns
- void
Definition at line 143 of file Log.php.
References $logger.
Slim_Log::warn |
( |
|
$object | ) |
|
Log warn message.
- Parameters
-
- 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;
}
Field Documentation
The documentation for this class was generated from the following file:
- Services/WebServices/Rest/lib/Slim/Log.php