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

The log entries.


Methods

decreaseDepth()

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

getLogs()

increaseDepth()

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 ( )
): \SetaPDF_Signer_ValidationRelatedInfo_LoggerInterface

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