You are here

public static function MoAuthUtilities::mo_add_loggers_for_failures in Google Authenticator / 2 Factor Authentication - 2FA 8.2

Parameters

$message = Which you want to add in the logger report.:

$typeOfLogger = error, notice, info, emergency, warning, alert, critical, debug.:

10 calls to MoAuthUtilities::mo_add_loggers_for_failures()
authenticate_user::mo_auth_authenticate_user_submit in src/Form/authenticate_user.php
authenticate_user::mo_auth_challenge_user in src/Form/authenticate_user.php
MiniorangeCustomerSetup::createCustomer in src/MiniorangeCustomerSetup.php
Create Customer.
miniorange_2fa_inline_registration::handle_page_five_submit in src/Form/miniorange_2fa_inline_registration.php
miniorange_2fa_inline_registration::handle_page_four_submit in src/Form/miniorange_2fa_inline_registration.php

... See full list

File

src/MoAuthUtilities.php, line 261
This file is part of miniOrange 2FA module.

Class

MoAuthUtilities

Namespace

Drupal\miniorange_2fa

Code

public static function mo_add_loggers_for_failures($message, $typeOfLogger) {
  \Drupal::logger('miniorange_2fa')
    ->{$typeOfLogger}($message);
}