setasign\SetaPDF2\Signer\ValidationRelatedInfo

Logger The standard logger implementation

File: /SetaPDF v2/Signer/ValidationRelatedInfo/Logger.php
Old class name (alias): \SetaPDF_Signer_ValidationRelatedInfo_Logger

Class hierarchy

Implements

Summary

Properties

$_depth

protected int Logger::$_depth = 0

Current depth.

$_directOutput

protected bool Logger::$_directOutput = false

The flag that defines whether a log message is output directly.

$_logs

protected LogEntry[] Logger::$_logs = array()

The log entries.


Methods

decreaseDepth()

public Logger::decreaseDepth (
void
): $this

This decreases the depth level which should be forward to new log entry instances.

getLogs()

public Logger::getLogs (
void
): LogEntry[]

Get all logs.

increaseDepth()

public Logger::increaseDepth (
void
): $this

This increases the depth level which should be forward to new log entry instances.

By a "depth" value it is possible to visualize the process in more detailed levels.

log()

public Logger::log (
string $message,
array $context = array ( )
): $this

Log a message.

Parameters
$message : string
 
$context : array
 

setDirectOutput()

public Logger::setDirectOutput (
bool $directOutput
): void

Set a flag that defines whether a log message is output directly.

Parameters
$directOutput : bool