‪TYPO3CMS  9.5
TYPO3\CMS\Lowlevel\Command\ListSysLogCommand Class Reference
Inheritance diagram for TYPO3\CMS\Lowlevel\Command\ListSysLogCommand:

Public Member Functions

 configure ()
 

Protected Member Functions

 execute (InputInterface $input, OutputInterface $output)
 
string arrayToLogString (array $arr, array $valueList)
 

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 29 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;" Previously found in GeneralUtility::arrayToLogString()

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 126 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 35 of file ListSysLogCommand.php.

◆ execute()

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

Executes the command for showing sys_log entries

Parameters
InputInterface$input
OutputInterface$output

Definition at line 47 of file ListSysLogCommand.php.

References $GLOBALS, $output, TYPO3\CMS\Lowlevel\Command\ListSysLogCommand\arrayToLogString(), and TYPO3\CMS\Backend\Utility\BackendUtility\datetime().