src/Training/Logger/ConsoleLogger.php
/**
     * Method initialize
     *
     * Initialize the configs for logger
     *
     *
     *
     */
Method initialize
Initialize the configs for logger
Method initialize Initialize the configs for logger
private function initialize()
    {
        $this->monolog = new Logger($this->logName);
        $showOnly = $this->logLevel;
        $stream = new StreamHandler('php://stdout', $showOnly);
        $stream->setFormatter(new ConsoleFormatter());
        $this->monolog->pushHandler($stream);
    }
private function initialize ( ) { $ this -> monolog = new Logger ( $ this -> logName ) ; $ showOnly = $ this -> logLevel ; $ stream = new StreamHandler ( 'php://stdout' , $ showOnly ) ; $ stream -> setFormatter ( new ConsoleFormatter ( ) ) ; $ this -> monolog -> pushHandler ( $ stream ) ; }
Method initialize
 Initialize the configs for logger
Method initialize Initialize the configs for logger
/**
         * Execuções por console sempre devem ser exibidas
         */ /**
         * File (Opcional)
         */ // $stream = new StreamHandler($this->logFullPath, $showOnly); // $stream->setFormatter(new ConsoleFormatter()); // $this->monolog->pushHandler($stream);