Changed $app to $this->app in createLogDriver method