Laravel Vapor - Look into logs in different channel in cloudwatch

This commit is contained in:
Dillon Ngo
2024-05-26 17:27:15 +08:00
parent db82c8f805
commit 126c73ab47
4 changed files with 119 additions and 12 deletions
@@ -18,6 +18,7 @@ use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use App\Classes\Exceptions\JobResourceNotFoundException;
use App\Classes\General\LogHelper;
abstract class AbstractControllerLogic
{
@@ -69,7 +70,7 @@ abstract class AbstractControllerLogic
} catch (ErrorException|GeneralExceptions $exception){
if ($exception instanceof JobResourceNotFoundException) {
Log::channel('vue_polling')->info(sprintf(
LogHelper::channel('vue_polling')->info(sprintf(
"Uncaught exception '%s' with message '%s' in %s:%d",
get_class($exception),
$exception->getMessage(),