You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this may sound like a dump question (forgive me im relativly new to python) but struggling with this one for a while now and now seeking for someone to help:
When my logger is configured like this in my init.py:
import logging
import sys
# Configure logging
log_format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
logging.basicConfig(
level=logging.DEBUG,
format=log_format,
handlers=[
logging.StreamHandler(sys.stdout),
logging.StreamHandler(sys.stderr),
logging.FileHandler("app.log")
]
)
# Example logger usage
logger = logging.getLogger("example")
logger.info("This is an info message")
logger.error("This is an error message")
The whole logs appear as expected inside the "Terminal" Window but not the "Debug Console" in VS Code.
Only print() commands are output to the "Debug Console".
Is this the intended behaviour? How do i redirect my logger output to the "Debug Console" (Its easier to read in my eyes)?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
I think this is expected.
I got the same result in #198
And yes, this is confusing...
The blender is started as task and its put belongs to terminal.
The debugger (debugpy) is started as debug session therefore it's output is in debug window, it connects to previously started blender instance.
Did I mention output window? It has the things that developer of extension (me?) decided to log using vscode API.
Hey folks,
this may sound like a dump question (forgive me im relativly new to python) but struggling with this one for a while now and now seeking for someone to help:
When my logger is configured like this in my init.py:
The whole logs appear as expected inside the "Terminal" Window but not the "Debug Console" in VS Code.
Only print() commands are output to the "Debug Console".
Is this the intended behaviour? How do i redirect my logger output to the "Debug Console" (Its easier to read in my eyes)?
Thanks in advance!
The text was updated successfully, but these errors were encountered: