how you can capture console messages for WebExtensions

I saw the documentation of

but I could not find how to capture the console messages of a tab, the only thing I could see is devtools but there is no way to do it.
I hope some help from the community.
tnks outlines where to find the proper console for all parts of your extension.