* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Dubture\Monolog\Reader; use Dubture\Monolog\Parser\LineLogParser; /** * Class AbstractReader * @package Dubture\Monolog\Reader */ class AbstractReader { /** @var string */ protected $defaultParserPattern; /** * @param $defaultParserPattern */ public function __construct($defaultParserPattern) { $this->defaultParserPattern = $defaultParserPattern; } /** * @return \Dubture\Monolog\Parser\LineLogParser */ protected function getDefaultParser() { return new LineLogParser($this->defaultParserPattern); } }