F
Filament7mo ago
ericmp

How to disable logging for Filament Notifications

Is there a way to disable the filament notifications logging? I'm using them via admin panel
// laravel.log
[2024-06-03 10:12:22] local.INFO: Broadcasting [database-notifications.sent] on channels [private-App.Models.User.1] with payload:
{
"user": {
"id": 1,
...
// laravel.log
[2024-06-03 10:12:22] local.INFO: Broadcasting [database-notifications.sent] on channels [private-App.Models.User.1] with payload:
{
"user": {
"id": 1,
...
13 Replies
Tetracyclic
Tetracyclic7mo ago
That looks like broadcasting is configured to use the log driver
ericmp
ericmpOP7mo ago
not sure if this helps, but this is a part of my .env:
LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
Tetracyclic
Tetracyclic7mo ago
It'll be the BROADCAST_CONNECTION key
ericmp
ericmpOP7mo ago
oh i see, yeah BROADCAST_CONNECTION=log im gonna try to put database
Tetracyclic
Tetracyclic7mo ago
There's no database driver, you'd need either Reverb, Pusher or Ably https://laravel.com/docs/11.x/broadcasting#supported-drivers
ericmp
ericmpOP7mo ago
bruh, okay hmmm. thanks 🤔 so is no way to keep it on log but somehow do not log it 😅 i know seems that doesnt make sense, but is basically cuz i dont want my rollbar to be filled with this logs not sure if u know what i mean
Tetracyclic
Tetracyclic7mo ago
Can you change Rollbar to only show logs above the "info" level?
ericmp
ericmpOP7mo ago
if u r asking it to me, idk, else, im gonna check it out now oh okay, wait, u mean "show" i dont want them cuz i have a limit of rollbar items per month if i hide them, they still there and the count increases anyways
Tetracyclic
Tetracyclic7mo ago
I'm not familiar with Rollbar, but can you configure the log driver for it to not send info logs in the first place?
ericmp
ericmpOP7mo ago
googling how to do it now. let see if i get it okay i think i have to change this 'level' => 'debug', to this: 'level' => 'warning', not sure but im testing it now
Dennis Koch
Dennis Koch7mo ago
Not sure but can’t your configure the log channel?
ericmp
ericmpOP7mo ago
yeah, this is what im doing now:
// config/logging.php
'rollbar' => [
'driver' => 'monolog',
'handler' => \Rollbar\Laravel\MonologHandler::class,
'access_token' => env('ROLLBAR_TOKEN'),
'level' => 'debug', // i think im changing this line, lets see
],
// config/logging.php
'rollbar' => [
'driver' => 'monolog',
'handler' => \Rollbar\Laravel\MonologHandler::class,
'access_token' => env('ROLLBAR_TOKEN'),
'level' => 'debug', // i think im changing this line, lets see
],
Tetracyclic
Tetracyclic7mo ago
Yeah, if it uses Monolog that will work.
Want results from more Discord servers?
Add your server