File

class OC\Log\File
logging utilities
Log is saved at data/nextcloud.log (on default)
Source:lib/private/Log/File.php#51
Parent:OC\Log\LogDetails
Implements:OCP\Log\IWriter OCP\Log\IFileBased

Properties

protected static property OC\Log\File::$logFile
Source:lib/private/Log/File.php#53
Type:string
protected static property OC\Log\File::$logFileMode
Source:lib/private/Log/File.php#55
Type:int

Methods

public OC\Log\File::__construct($path, $fallbackPath, $config)
Source:lib/private/Log/File.php#59
public OC\Log\File::write($app, $message, $level)
write a message in the log
Source:

lib/private/Log/File.php#83

Parameters:
  • $app (string)
  • $message (string | array)
  • $level (int)
public OC\Log\File::getEntries($limit=50, $offset=0)
get entries from the log in reverse chronological order
Source:

lib/private/Log/File.php#110

Parameters:
  • $limit (int)
  • $offset (int)
Returns:

array

public OC\Log\File::getLogFilePath()
Source:lib/private/Log/File.php#155
Returns:string