1. Go to this page and download the library: Download schalkt/log 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/ */
schalkt / log example snippets
use Schalkt\Slog\Log;
ld!');
use Schalkt\Slog\Log;
APP_PATH . '/storage/logs/default']);
Log::to()->info('Hello World!');
use Schalkt\Slog\Log;
'folder' => APP_PATH . '/storage/logs/import',
'folder_chmod' => 0700,
'pattern_row' => '{DATE} {EOL} {STATUS} {EOL} {MESSAGE} {EOL} {REQUEST}',
]);
// add an error to the import log
Log::to('import')->error('Unique id
use Schalkt\Slog\Log;
Log::configs('./config/logs.php');
// add an error to the default log
Log::to()->error('Password
// Delete all log files and the base folder
Log::to('custom')->flush();
// Delete only the log files but keep the base folder
Log::to('custom')->flush(false);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.