Skip to content
Snippets Groups Projects
Commit 21eabae3 authored by Matthew Slater's avatar Matthew Slater
Browse files

added logger channel

parent 8e053a52
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ function alt_login_user_presave(UserInterface $account) {
}
$account->setUsername($new_name);
// Note that the the User RegisterForm logs user creation with another name.
\Drupal::logger('Alt Login')->notice('New user name set to '.$new_name);
\Drupal::logger('alt_login')->notice('New user name set to '.$new_name);
}
}
}
......
services:
alt_login.method_manager:
class: Drupal\alt_login\AltLoginMethodManager
arguments: ['@container.namespaces', '@module_handler', '@config.factory']
\ No newline at end of file
arguments: ['@container.namespaces', '@module_handler', '@config.factory']
logger.channel.alt_login:
parent: logger.channel_base
arguments: ['Alt Login']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment