Nextcloud PHP API (master)

ILogFactory

Interface ILogFactory

Tags
since
14.0.0

Table of Contents

Methods

get()  : IWriter
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

getCustomPsrLogger()

public getCustomPsrLogger(string $path[, string $type = 'file' ][, string $tag = 'Nextcloud' ][, bool $structuredContext = false ]) : LoggerInterface
Parameters
$path : string
$type : string = 'file'
$tag : string = 'Nextcloud'
$structuredContext : bool = false

Keep array values of the context as structured data in the log entry instead of encoding them to a JSON string. Values used as message placeholders are always converted to strings.

Tags
since
22.0.0
  • Parameters $type and $tag were added in 24.0.0
36.0.0
  • Parameter $structuredContext was added
Return values
LoggerInterface
On this page

Search results