Overview

Namespaces

  • gregoryv
    • logger

Classes

  • CachedWriter
  • ConsoleWriter
  • FileWriter
  • Logger
  • State
  • SyslogWriter

Interfaces

  • SeverityWriterInterface
  • Overview
  • Namespace
  • Class

Class State

Holds state of logging levels

Namespace: gregoryv\logger
Located at State.php
Methods summary
public
# toggle( string $flag, string $name )

Sets the named attribute to true or false

Sets the named attribute to true or false

Parameters

$flag
(on|off)
$name
(debug|info|notice|warn|error|critical|alert|emergency)

Throws

InvalidArgumentException
on badly formated $flag or $name
Properties summary
public boolean $debug
# true
public boolean $info
# true
public boolean $notice
# true
public boolean $warn
# true
public boolean $error
# true
public boolean $critical
# true
public boolean $alert
# true
public boolean $emergency
# true
API documentation generated by ApiGen