Used for testing purposes.

It records all records and gives you access to them for verification.

    CloneableInstantiable
    ExtendsPsr\Log\AbstractLogger
    ImplementsPsr\Log\LoggerInterface
    Properties
    public $records
     
    • var array
    public $recordsByLevel
    Methods
    public __call( $method, $args)
    public Psr\Log\AbstractLogger::alert( $message, array $context = [])
     

    Action must be taken immediately.

    Example: Entire website down, database unavailable, etc. This should
    trigger the SMS alerts and wake you up.

    • return void
    public Psr\Log\AbstractLogger::critical( $message, array $context = [])
     

    Critical conditions.

    Example: Application component unavailable, unexpected exception.

    • return void
    public Psr\Log\AbstractLogger::debug( $message, array $context = [])
     

    Detailed debug information.

    • return void
    public Psr\Log\AbstractLogger::emergency( $message, array $context = [])
     

    System is unusable.

    • return void
    public Psr\Log\AbstractLogger::error( $message, array $context = [])
     

    Runtime errors that do not require immediate action but should typically
    be logged and monitored.

    • return void
    public hasRecord( $record, $level)
    public hasRecords( $level)
    public hasRecordThatContains( $message, $level)
    public hasRecordThatMatches( $regex, $level)
    public hasRecordThatPasses(callable $predicate, $level)
    public Psr\Log\AbstractLogger::info( $message, array $context = [])
     

    Interesting events.

    Example: User logs in, SQL logs.

    • return void
    public log( $level, $message, array $context = [])
     
      public Psr\Log\AbstractLogger::notice( $message, array $context = [])
       

      Normal but significant events.

      • return void
      public reset()
      public Psr\Log\AbstractLogger::warning( $message, array $context = [])
       

      Exceptional occurrences that are not errors.

      Example: Use of deprecated APIs, poor use of an API, undesirable things
      that are not necessarily wrong.

      • return void
      © 2020 Bruce Wells
      Search Namespaces \ Classes
      ConfigurationNumbers (0-9.) only