ILogFactory

interface OCP\Log\ILogFactory
Interface ILogFactory
Implemented by:OC\Log\LogFactory
Source:lib/public/Log/ILogFactory.php#35

Methods

public OCP\Log\ILogFactory::get($type)
Source:

lib/public/Log/ILogFactory.php#41

Parameters:
  • $type (string) - one of: file, errorlog, syslog, systemd
Returns:

\OCP\Log\IWriter

Since:

14.0.0

public OCP\Log\ILogFactory::getCustomLogger($path)
Source:

lib/public/Log/ILogFactory.php#50

Parameters:
  • $path (string)
Returns:

\OCP\ILogger

Since:

14.0.0

Deprecated:

use \OCP\Log\ILogFactory::getCustomPsrLogger

See:

\OCP\Log\ILogFactory::getCustomPsrLogger

public OCP\Log\ILogFactory::getCustomPsrLogger($path)
Source:

lib/public/Log/ILogFactory.php#57

Parameters:
  • $path (string)
Returns:

\Psr\Log\LoggerInterface

Since:

22.0.0