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: 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 shouldtrigger the SMS alerts and wake you up.
Source: Parameters: - $message (string)
- $context (array)
Returns: void
-
public
OC\Log\PsrLoggerAdapter::
critical
($message, $context=[])¶ - Critical conditions.Example: Application component unavailable, unexpected exception.
Source: Parameters: - $message (string)
- $context (array)
Returns: void
-
public
OC\Log\PsrLoggerAdapter::
error
($message, $context=[])¶ - Runtime errors that do not require immediate action but should typicallybe logged and monitored.
Source: 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 thingsthat are not necessarily wrong.
Source: Parameters: - $message (string)
- $context (array)
Returns: void
-
public
OC\Log\PsrLoggerAdapter::
notice
($message, $context=[])¶ - Normal but significant events.
Source: Parameters: - $message (string)
- $context (array)
Returns: void
-
public
OC\Log\PsrLoggerAdapter::
info
($message, $context=[])¶ - Interesting events.Example: User logs in, SQL logs.
Source: Parameters: - $message (string)
- $context (array)
Returns: void
-
public
OC\Log\PsrLoggerAdapter::
debug
($message, $context=[])¶ - Detailed debug information.
Source: Parameters: - $message (string)
- $context (array)
Returns: void
-
public
OC\Log\PsrLoggerAdapter::
log
($level, $message, $context=[])¶ - Logs with an arbitrary level.
Source: 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