\App\GatewayModule\ModelsLogManager

Tool for downloading and reading IQRF Gateway Daemon's log files

Summary

Methods
Properties
Constants
__construct()
load()
getLatestLog()
download()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$logDir
$path
N/A

Properties

$logDir

$logDir : string

Type

normal — Path to a directory with log files of IQRF Gateway Daemon

$path

$path : string

Type

normal — Path to ZIP archive

Methods

__construct()

__construct(string  $logDir) : mixed

Constructor

Parameters

string $logDir

Path to a directory with log files of IQRF Gateway Daemon

Returns

mixed

load()

load() : string

Loads the latest log of IQRF Gateway Daemon

Returns

string —

IQRF Gateway Daemon's log

getLatestLog()

getLatestLog() : string

Returns IQRF Gateway Daemon's latest log file path

Returns

string —

IQRF Gateway Daemon's latest log file path

download()

download() : \Nette\Application\Responses\FileResponse

Downloads logs of IQRF Gateway Daemon

Throws

\Nette\Application\BadRequestException

Returns

\Nette\Application\Responses\FileResponse —

HTTP response with the logs