TYPO3  7.6
Namespaces | Classes | Functions | Variables
Psr\Log Namespace Reference

Namespaces

namespace  Test
 

Classes

class  AbstractLogger
 
class  InvalidArgumentException
 
interface  LoggerAwareInterface
 
interface  LoggerInterface
 
class  LogLevel
 
class  NullLogger
 

Functions

 setLogger (LoggerInterface $logger)
 

Variables

trait LoggerAwareTrait
 
trait LoggerTrait
 

Function Documentation

Psr\Log\setLogger ( LoggerInterface  $logger)

Sets a logger.

Parameters
LoggerInterface$logger

Definition at line 22 of file LoggerAwareTrait.php.

Variable Documentation

trait LoggerAwareTrait
Initial value:
{
protected $logger

Basic Implementation of LoggerAwareInterface.

Definition at line 9 of file LoggerAwareTrait.php.

trait LoggerTrait

This is a simple Logger trait that classes unable to extend AbstractLogger (because they extend another class, etc) can include.

It simply delegates all log-level-specific methods to the log method to reduce boilerplate code that a simple Logger that does the same thing with messages regardless of the error level has to implement.

Definition at line 14 of file LoggerTrait.php.