PHP code example of wyrihaximus / psr-3-callable-throwable-logger
1. Go to this page and download the library: Download wyrihaximus/psr-3-callable-throwable-logger 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/ */
wyrihaximus / psr-3-callable-throwable-logger example snippets
$logger = new Psr3Logger();
$reactPromise->done(function () {
// Happy flow handler
}, CallableThrowableLogger::create($logger));
$logger = new Psr3Logger();
$rxPhpStream->subscribute(function ($item) {
// Items handler
}, CallableThrowableLogger::create($logger), function () {
// Done
});
CallableThrowableLogger::create(
$logger, // aught Throwable %1$s: "%2$s" at %3$s line %4$s', // optional: Message
// %1$s => the throwable classname
// %2$s => the throwable message
// %3$s => the throwable file
// %4$s => the throwable line
);