Configure monolog handler for lumen

I am trying to configure monolog to use a custom stream handler via $app->configureMonologUsing but calling the function leads to an error Fatal er...