Overview

Namespaces

  • CzProject
    • Logger

Classes

  • CzProject\Logger\CliLogger
  • CzProject\Logger\FileLogger
  • CzProject\Logger\MemoryLogger
  • CzProject\Logger\MultiLogger
  • CzProject\Logger\OutputLogger

Interfaces

  • CzProject\Logger\ILogger
  • Overview
  • Namespace
  • Class
 1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 
<?php

    namespace CzProject\Logger;


    class OutputLogger implements ILogger
    {
        /** @var int */
        private $level;


        /**
         * @param  int
         */
        public function __construct($level = ILogger::INFO)
        {
            $this->level = $level;
        }


        public function log($msg, $level = ILogger::INFO)
        {
            if ($level >= $this->level) {
                echo $msg, "\n";
            }
        }
    }
czproject/logger master API documentation API documentation generated by ApiGen