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

Public Member Functions

 configure ()
 

Protected Member Functions

int 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 30 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 128 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 36 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 49 of file ListSysLogCommand.php.

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