‪TYPO3CMS  11.5
TYPO3\CMS\Lowlevel\Command\ListSysLogCommand Class Reference
Inheritance diagram for TYPO3\CMS\Lowlevel\Command\ListSysLogCommand:
TYPO3\CMS\Core\Log\LogDataTrait

Public Member Functions

 configure ()
 

Protected Member Functions

int execute (InputInterface $input, OutputInterface $output)
 
string arrayToLogString (array $arr, array $valueList)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Log\LogDataTrait
array null unserializeLogData ($logData)
 
string formatLogDetails (string $detailString, $substitutes)
 

Additional Inherited Members

- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Log\LogDataTrait
static formatLogDetailsStatic (string $detailString, array $substitutes)
 

Detailed Description

Lists all sys_log entries from the last 24 hours by default This is the most basic and can be useful for nightly check test reports.

Definition at line 32 of file ListSysLogCommand.php.

Member Function Documentation

◆ arrayToLogString()

string TYPO3\CMS\Lowlevel\Command\ListSysLogCommand::arrayToLogString ( array  $arr,
array  $valueList 
)
protected

Converts a one dimensional array to a one line string which can be used for logging or debugging output Example: "loginType: FE; refInfo: Array; HTTP_HOST: www.example.org; REMOTE_ADDR: 192.168.1.5; REMOTE_HOST:; security_level:; showHiddenRecords: 0;"

Parameters
array$arr‪Data array which should be outputted
array$valueList‪List of keys which should be listed in the output string.
Returns
‪string Output string with key names and their value as string

Definition at line 130 of file ListSysLogCommand.php.

Referenced by TYPO3\CMS\Lowlevel\Command\ListSysLogCommand\execute().

◆ configure()

TYPO3\CMS\Lowlevel\Command\ListSysLogCommand::configure ( )

Configure the command by defining the name, options and arguments

Definition at line 38 of file ListSysLogCommand.php.

◆ execute()

int TYPO3\CMS\Lowlevel\Command\ListSysLogCommand::execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

Executes the command for showing sys_log entries

Parameters
InputInterface$input
OutputInterface$output
Returns
‪int

Definition at line 50 of file ListSysLogCommand.php.

References $GLOBALS, $output, TYPO3\CMS\Lowlevel\Command\ListSysLogCommand\arrayToLogString(), TYPO3\CMS\Core\Log\LogDataTrait\formatLogDetails(), TYPO3\CMS\Core\Database\Connection\PARAM_INT, and TYPO3\CMS\Core\Log\LogDataTrait\unserializeLogData().