PsrLoggerAdapter

class OC\Log\PsrLoggerAdapter
Source:lib/private/Log/PsrLoggerAdapter.php#38
Implements:Psr\Log\LoggerInterface OCP\Log\IDataLogger

Properties

Methods

public OC\Log\PsrLoggerAdapter::__construct($logger)
Source:lib/private/Log/PsrLoggerAdapter.php#43
public OC\Log\PsrLoggerAdapter::emergency($message, $context=[])
System is unusable.
Source:

lib/private/Log/PsrLoggerAdapter.php#59

Parameters:
  • $message (string)
  • $context (array)
Returns:

void

public OC\Log\PsrLoggerAdapter::alert($message, $context=[])
Action must be taken immediately.
Example: Entire website down, database unavailable, etc. This should
trigger the SMS alerts and wake you up.
Source:

lib/private/Log/PsrLoggerAdapter.php#84

Parameters:
  • $message (string)
  • $context (array)
Returns:

void

public OC\Log\PsrLoggerAdapter::critical($message, $context=[])
Critical conditions.
Example: Application component unavailable, unexpected exception.
Source:

lib/private/Log/PsrLoggerAdapter.php#108

Parameters:
  • $message (string)
  • $context (array)
Returns:

void

public OC\Log\PsrLoggerAdapter::error($message, $context=[])
Runtime errors that do not require immediate action but should typically
be logged and monitored.
Source:

lib/private/Log/PsrLoggerAdapter.php#131

Parameters:
  • $message (string)
  • $context (array)
Returns:

void

public OC\Log\PsrLoggerAdapter::warning($message, $context=[])
Exceptional occurrences that are not errors.
Example: Use of deprecated APIs, poor use of an API, undesirable things
that are not necessarily wrong.
Source:

lib/private/Log/PsrLoggerAdapter.php#156

Parameters:
  • $message (string)
  • $context (array)
Returns:

void

public OC\Log\PsrLoggerAdapter::notice($message, $context=[])
Normal but significant events.
Source:

lib/private/Log/PsrLoggerAdapter.php#178

Parameters:
  • $message (string)
  • $context (array)
Returns:

void

public OC\Log\PsrLoggerAdapter::info($message, $context=[])
Interesting events.
Example: User logs in, SQL logs.
Source:

lib/private/Log/PsrLoggerAdapter.php#202

Parameters:
  • $message (string)
  • $context (array)
Returns:

void

public OC\Log\PsrLoggerAdapter::debug($message, $context=[])
Detailed debug information.
Source:

lib/private/Log/PsrLoggerAdapter.php#224

Parameters:
  • $message (string)
  • $context (array)
Returns:

void

public OC\Log\PsrLoggerAdapter::log($level, $message, $context=[])
Logs with an arbitrary level.
Source:

lib/private/Log/PsrLoggerAdapter.php#249

Parameters:
  • $level (mixed)
  • $message (string)
  • $context (array)
Returns:

void

Throws:

\Psr\Log\InvalidArgumentException

public OC\Log\PsrLoggerAdapter::logData($message, $data, $context=[])
Source:lib/private/Log/PsrLoggerAdapter.php#266