Logger doesn't work for me

Hi
I want to log a variable in componentDidMount method but it doesn’t work. I’ve done below:

import logger from ‘./logger’ (or appropriate path)
componentDidMount(){
logger.log(${variable})

}

I’ve do like logging method in your code but it doesn’t work.
What is wrong?

What code are you trying to modify? Is that component really mounted?

I modify some component like Conference.js. The component mounted successfully but I can’t log in the apk with logger.debud(). Any way I can log with console.debug() in the terminal and it is easier for me.

You can still use console.debug().

1 Like