You are here

public function Logger::setCurrentUser in Monolog 2.x

Same name and namespace in other branches
  1. 8 src/Logger/Logger.php \Drupal\monolog\Logger\Logger::setCurrentUser()

Sets the current user.

Parameters

\Drupal\Core\Session\AccountInterface|null $current_user: The current user object.

Overrides LoggerChannelInterface::setCurrentUser

File

src/Logger/Logger.php, line 59

Class

Logger
Logger class for the Drupal Monolog module.

Namespace

Drupal\monolog\Logger

Code

public function setCurrentUser(AccountInterface $current_user = NULL) {

  // Do nothing, use a handler for this.
}