public function FileLog::__construct in File Log 8
Same name and namespace in other branches
- 2.0.x src/Logger/FileLog.php \Drupal\filelog\Logger\FileLog::__construct()
FileLog constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config.factory service.
\Drupal\Core\State\StateInterface $state: The state service.
\Drupal\Core\Utility\Token $token: The token service.
\Drupal\Component\Datetime\TimeInterface $time: The datetime.time service.
\Drupal\Core\Logger\LogMessageParserInterface $parser: The logger.log_message_parser service.
\Drupal\filelog\LogFileManagerInterface $fileManager: The filelog.file_manager service.
File
- src/
Logger/ FileLog.php, line 103
Class
- FileLog
- File-based logger.
Namespace
Drupal\filelog\LoggerCode
public function __construct(ConfigFactoryInterface $configFactory, StateInterface $state, Token $token, TimeInterface $time, LogMessageParserInterface $parser, LogFileManagerInterface $fileManager) {
$this->config = $configFactory
->get('filelog.settings');
$this->state = $state;
$this->token = $token;
$this->time = $time;
$this->parser = $parser;
$this->fileManager = $fileManager;
}