PHP code example of cliffparnitzky / backend-logs

1. Go to this page and download the library: Download cliffparnitzky/backend-logs library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cliffparnitzky / backend-logs example snippets


$GLOBALS['TL_LOGFILES']['logfileMylog'] = array ('logfile' => '/system/logs/mylog.log', 'rows' => 30);

if ($GLOBALS['TL_LANGUAGE'] == 'de')
{
    $GLOBALS['TL_LANG']['MOD']['logfileMylog'] = "Mein Logfile";
}
elseif ($GLOBALS['TL_LANGUAGE'] == 'en')
{
    $GLOBALS['TL_LANG']['MOD']['logfileMylog'] = "My logfile";
}