Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
4 / 4
StringLogger
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
4 / 4
 log($message, $eventType = ScreenLogger::NORMAL)
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
 getLog()
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
/**
 *
 */
namespace aae\log {
    /**
     * @author Axel Ancona Esselmann
     * @package aae\log
     */
    class StringLogger extends \aae\log\AbstractLogger  implements \aae\log\Loggable {
        private $_result = "";
        public function log($message, $eventType = ScreenLogger::NORMAL) {
            $timeString = $this->_getTimeString();
            $this->_result .= $this->_getString($message, $timeString, $eventType);
        }
        public function getLog() {
            return $this->_result;
        }
    }
}