Back to LoggerRegistry class

Method hasLogger

public bool
hasLogger
(string $key)
Check if the registry has a logger for the given key
Parameters
  • string $key The key to look up
Returns
  • bool
Since
  • 4.0.0

Method hasLogger - Source code

/**
 * Check if the registry has a logger for the given key
 *
 * @param   string  $key  The key to look up
 *
 * @return  boolean
 *
 * @since   4.0.0
 */
public function hasLogger(string $key) : bool
{
    return isset($this->loggerMap[$key]);
}