Closed asgrim closed 4 years ago
As of ^1.0
you can override the configuration in your own service provider, after \Scoutapm\Laravel\Providers\ScoutApmServiceProvider::register()
, for example:
$this->app->singleton(self::CONFIG_SERVICE_KEY, static function () {
return Config::fromArray([
ConfigKey::APPLICATION_NAME => 'My Application Name',
ConfigKey::APPLICATION_KEY => 'my application key',
ConfigKey::MONITORING_ENABLED => true,
ConfigKey::LOG_LEVEL => LogLevel::ERROR,
]);
});
At the moment, only configuration from environment files can be done in Laravel.
The
\Scoutapm\Config
instantiation is done just withnew Config()
; make this more configurable if you don't use the env.