class Logger in Monolog 6
Same name and namespace in other branches
- 7 src/Drupal/Monolog/Logger.php \Drupal\Monolog\Logger
Logger class for the Drupal Monolog module.
Allows the channel to be modified after the class is instantiated. This is normally not a good idea, but it is necessary to reconcile the differences in the Monolog library and how the watchdog type relates to the logging facility.
Hierarchy
- class \Drupal\Monolog\Logger extends \Monolog\Logger
Expanded class hierarchy of Logger
1 file declares its use of Logger
- monolog.module in ./
monolog.module - A Framework and UI for integrating with the Monolog library.
File
- src/
Drupal/ Monolog/ Logger.php, line 19
Namespace
Drupal\MonologView source
class Logger extends BaseLogger {
/**
* Sets the channel name.
*
* @param string $name
* The logging channel.
*/
public function setName($name) {
$this->name = $name;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Logger:: |
public | function | Sets the channel name. |