You are here

class Logger in Monolog 6

Same name and namespace in other branches
  1. 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\Monolog
View source
class Logger extends BaseLogger {

  /**
   * Sets the channel name.
   *
   * @param string $name
   *   The logging channel.
   */
  public function setName($name) {
    $this->name = $name;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Logger::setName public function Sets the channel name.