Delgan
Delgan
You are correct, I installed Python using the binaries on python.org. `colorama` works fine with bash and powershell. As discussed, it only fails when invoked from `git-bash.exe` which I downloaded...
@1138-4EB Oups, sorry, you wrote "bash" but my brain read "cmd". Of course, I could not and I did not test with `bash`. So, I tried to run my Windows...
@1138-4EB Both solutions work! I think one may solve this by checking for the `"TERM"` environment variable in addition to `"PYCHARM_HOSTED"`.
@jyotsnarupaliya At the time I tried, `"PYCHARM_HOSTED"` was probably not set as I was testing from the command line. But it can be set to `"1"` as a workaround to...
> I'm not sure why in write_stream in better-exceptions code, the data is first encoded and then written to buffer, instead of leaving the data unencoded and just using write....
Hey @edagnin. You solution looks fine. However, did you consider redirecting Loguru output to Pytest logs manager instead? Just in case in can be useful, patching the `caplog` fixture is...
Yeah, sorry, actually forget about the `caplog` suggestion, I don't think it suits your needs. However, what I had in mind was to not use Loguru to log test results...
Please clarify your question.
This is not available out of the box, you'll need to implement a decorator like this one: [Logging entry and exit of functions with a decorator](https://loguru.readthedocs.io/en/stable/resources/recipes.html#logging-entry-and-exit-of-functions-with-a-decorator).
You can re-add a sink logging to `stderr`. ```python logger.add(sink=sys.stderr, level="DEBUG") ```