Nextcloud PHP API (master)

ILogFactory

Interface ILogFactory

Tags
since
14.0.0

Table of Contents

Methods

get()  : IWriter
getCustomLogger()  : ILogger
getCustomPsrLogger()  : LoggerInterface

Methods

get()

public get(string $type) : IWriter
Parameters
$type : string
  • one of: file, errorlog, syslog, systemd
Tags
since
14.0.0
Return values
IWriter

getCustomLogger()

public getCustomLogger(string $path) : ILogger
Parameters
$path : string
Tags
since
14.0.0
deprecated
22.0.0

Use \OCP\Log\ILogFactory::getCustomPsrLogger

see
ILogFactory::getCustomPsrLogger
Return values
ILogger

getCustomPsrLogger()

public getCustomPsrLogger(string $path[, string $type = 'file' ][, string $tag = 'Nextcloud' ]) : LoggerInterface
Parameters
$path : string
$type : string = 'file'
$tag : string = 'Nextcloud'
Tags
since
22.0.0
  • Parameters $type and $tag were added in 24.0.0
Return values
LoggerInterface

        
On this page

Search results