Skip to content

Target class [log] does not exist.  #502

@henzeb

Description

@henzeb

I am trying to use Bugsnag with this framework, but I get this error as soon as I add the bugsnag service provider.

Diving into the code learns that providers registered in the app config file or registered in the app.php bootstrap file are run BEFORE the components. This happens in the foundation bootstrap.

When the components are registered, the instance of LogManager will be a completely new one. Registering the LoggingServiceProvider will not work, just because of that behaviour.

https://github.com/laravel-zero/framework/blob/f1d81049c68ebaae7e2310b7e6eefadcbcd19262/src/Bootstrap/RegisterProviders.php#L73

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions