PHP code example of pod-point / laravel-monolog-kinesis
1. Go to this page and download the library: Download pod-point/laravel-monolog-kinesis 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/ */
pod-point / laravel-monolog-kinesis example snippets
namespace App;
use Monolog\Formatter\NormalizerFormatter;
class SimplerCustomFormatter extends NormalizerFormatter
{
public function format(array $record) // here you can customize the formatting
{
return [
'Data' => [
'level' => $record['level_name'],
'custom_message' => $record['message'],
],
];
}
}