Back to Joomla project (class list)

Class LoggerRegistry - list of methods

Service registry for loggers
Package: Joomla\CMS\Log
Copyright: (C) 2017 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Log/LoggerRegistry.php
Project: Joomla

Method Summary

public string
(string $key)

Get the logger class for a given key
Parameters
  • string $key The key to look up
Returns
  • string
Since
  • 4.0.0
-
  • \InvalidArgumentException
Show source code of this method: getLoggerClass Source Code

public bool
(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
Show source code of this method: hasLogger Source Code

public void
(string $key, string $class, bool $replace = false)

Register a logger
Parameters
  • string $key The service key to be registered
  • string $class The class name of the logger
  • bool $replace Flag indicating the service key may replace an existing definition
Returns
  • void
Since
  • 4.0.0
Show source code of this method: register Source Code

Properties Summary

private string[]
$loggerMap
Array holding the registered services
Since
  • 4.0.0

Tags Summary

Since
4.0.0