You are here

public function JsonLog::getFileName in JSONlog 8

Same name and namespace in other branches
  1. 8.2 src/Logger/JsonLog.php \Drupal\jsonlog\Logger\JsonLog::getFileName()
  2. 3.x src/Logger/JsonLog.php \Drupal\jsonlog\Logger\JsonLog::getFileName()

Helper function to determine correct log filename.

Parameters

string $file_time_format:

Return value

string

1 call to JsonLog::getFileName()
JsonLog::loadDefaultSettings in src/Logger/JsonLog.php
Fetch all settings of this module.

File

src/Logger/JsonLog.php, line 180

Class

JsonLog
Redirects logging messages to jsonlog.

Namespace

Drupal\jsonlog\Logger

Code

public function getFileName($file_time_format) {
  return $this->dir . '/' . $this->site_id . ($file_time_format == 'none' ? '' : '.' . date($file_time_format)) . '.json.log';
}