protected function getFormatter()
    {
        // Get formatter
        $format = LineFormatter::SIMPLE_FORMAT;
        if (!Director::is_cli()) {
            $format = "<p>$format</p>";
        }
        return Injector::inst()->createWithArgs(
            LineFormatter::class,
            array($format)
        );
    }
protected function getFormatter()
    {
        // Get formatter
        $format = LineFormatter::SIMPLE_FORMAT;
        if (!Director::is_cli()) {
            $format = "<p>$format</p>";
        }
        return Injector::inst()->createWithArgs(
            LineFormatter::class,
            array($format)
        );
    }
protected function getFormatter ( ) { // Get formatter $ format = LineFormatter :: SIMPLE_FORMAT ; if ( ! Director :: is_cli ( ) ) { $ format = "<p>$format</p>" ; } return Injector :: inst ( ) -> createWithArgs ( LineFormatter :: class , array ( $ format ) ) ; }
Gets a formatter for standard output

@return FormatterInterface
Gets a formatter for standard output