Roots Discourse

Functions from global.php like logger not working

Hi,

I am trying to use acorn as a composer repo with a bedrock setup.

I have initiated acorn with this line on top of my plugin file:
Roots\add_actions([‘after_setup_theme’, ‘rest_api_init’], ‘Roots\bootloader’, 5);

I am trying to access functions from globals.php like a logger, but it throws an error like this:
Fatal error : Uncaught Error: Call to undefined function logger()

if I am trying to use a function like Roots\logger(), it throws an error like this:
Fatal error : Uncaught Error: Call to a member function make() on null in MYDOCROOT\vendor\roots\acorn\src\helpers.php:33

I could not find how to make it work. can someone please guide me on this?

Thanks