\Pho\Lib\GraphLogger

A basic logger class compatible with PHP Psr 3 standards

Summary

Methods
Properties
Constants
setup()
setVerbosity()
warning()
info()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
processParams()
$logger
$verbosity
N/A

Properties

$logger

$logger : \Psr\Log\LoggerInterface

Type

\Psr\Log\LoggerInterface

$verbosity

$verbosity : integer

Type

integer

Methods

setup()

setup(\Psr\Log\LoggerInterface  $logger, integer  $verbosity = 1) : void

Sets up the logger

Works like a constructor, but it's not. This is an all static class.

Parameters

\Psr\Log\LoggerInterface $logger

Psr3 compatible logger object

integer $verbosity

0: silent, 1: warning, 2: info

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

setVerbosity()

setVerbosity(integer  $verbosity) : void

Sets the verbosity level.

Parameters

integer $verbosity

$verbosity 0: silent, 1: warning, 2: info

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

warning()

warning(  $params) : void

Logs warning or more critical messages.

Parameters

$params
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

info()

info(  $params) : void

Logs informational or debug messages.

Parameters

$params
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

processParams()

processParams(array  $message) : void

A helper method to process log parameters.

Parameters

array $message

Message parametrized similarly to how sprintf works.

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275