Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lvd_ss's avatar
Level 5

Laravel Telescope Not Working As Log Channel

Apologies if this is in the wrong channel.

Using Laravel 11 for my project. I run my production environment behind a load balancer, and control server. I wanted to aggregate all logs into the database and have them outputted on a seperate subdomain, eg. logs.example.com via telescope.

config/telescope.php

config/logging.php

.env(This is the same across all servers. Also, DB Connection is the same accross all)

TELESCOPE_ENABLED=true
TELESCOPE_LOG_WATCHER=true
TELESCOPE_DOMAIN=logs.garageflo.io
TELESCOPE_DRIVER=database
TELESCOPE_PATH=telescope

LOG_CHANNEL=stack
LOG_STACK=telescope,single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

Current issue,

 laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Unresolvable dependency resolving [Parameter #0 [ <required> $app ]] in class Illuminate\\Support\\ServiceProvider at /home/lvd/sites/garageflo-web/vendor/laravel/framework/src/Illuminate/Container/Container.php:1216)

Can someone point me in the right direction? Any obvious misconfigurations? I've been dealing with this same issue for a little over two and a half days now.

0 likes
2 replies
lvd_ss's avatar
Level 5

I should add -

In the laravel documentation it says to remove the autogenerated line in bootstrap/providers.php that is generated when doing telescope:install and artisan migrate.

And instead place it inside of /app/Providers/AppServiceProvider.php

Specifically, here.

  public function register(): void // GFD-0012 Added telescope
    {
        if (class_exists(\Laravel\Telescope\TelescopeServiceProvider::class)) {
            $this->app->register(TelescopeServiceProvider::class);
        }
    }

Could this be causing my issues? Not quite sure but overall a bit confused, if anyone needs any more information do not hesitate to ask as I can provide whatever is necessary.

lvd_ss's avatar
lvd_ss
OP
Best Answer
Level 5

Cause

My mistake here, I thought that telescope was the driver creating the logs, in reality, it just listens to whatever current driver is used for logging.

Solution

Remove telescope driver configuration from config/logging.php Change .env

LOG_CHANNEL=single
LOG_STACk=single

(Using single for laravel.log file output)

Now I have all servers reporting logs to telescope.

Please or to participate in this conversation.