Custom component print variable in Hassio log

Hello everyone,
I created a custom componet (sensor) Is there a way to debug my code and see it on the Hassio logs? Can I print the value of a variable, and if so what is the procedure?

Thanks

Sure here’s an example of a snippet from some of my code.
_LOGGER.debug(
‘%s - %s to %s’,
entity,
from_state.state,
to_state.state
)

I’m sure you can search for more specifics.