Comments (13)
Hello I c this issue still open? I can have a look
from better-exceptions.
I can’t reproduce this. Whenever the logging
module is involved, nothing of the output is colored. Maybe someone can provide a MCVE.
from better-exceptions.
I'm confused.
Currently if the output is to a terminal, then an exception that gets logged will also include the colour escape codes.
Yes, correct. That's how terminal colors work :p
This is not really ideal since they will just show up as raw escape codes in most editors, making the log harder to read.
Which editors? Where?
So it would be great if the logged exceptions could skip the colour-coding even if the current terminal supports colours.
Why would that be great? That just means no color.
The output to the terminal itself should still be coloured of course
I'm completely lost. What issue are you facing?
from better-exceptions.
I mean that exception colours will also be present in log files that get written when using the logging
module, for example when using logging.exception("oops")
. These escape codes don't really belong in log files, only in direct terminal output, because editors that you would use to inspect log files are (generally) not terminals.
from better-exceptions.
Ohhh, you mean with the logging module. Okay, I agree. I'm not near a computer right now as I'm sick, but I'll try to reproduce in a while.
from better-exceptions.
from better-exceptions.
No problem :)
from better-exceptions.
Yes, I'm facing the same issue. Could you please consider adding an option to disable coloring?
from better-exceptions.
@issuehunt has funded $50.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.
from better-exceptions.
@Qix- @majutsushi any update on this??? as i understand we don't want the color ASCII characters to include while logging to files...
from better-exceptions.
@lokesh1729 As is with most OSS, if it is not updated on this issue, then there is no update. We don't secretly discuss/code outside of Github. Please don't spam my issues with comments asking for updates.
from better-exceptions.
@Qix- i understand but my intention is not to spam but to contribute... i want to work on this issue, so "update" i mean is wanted to know if someone has already made a progress on it...
from better-exceptions.
Nope, nobody has made progress on it.
from better-exceptions.
Related Issues (20)
- activate extension only when BETTER_EXCEPTIONS has true-like value: '1', 'on' or 'yes' HOT 2
- FileNotFoundError on PyPy HOT 4
- TERM setting of tmux-256color vs screen… HOT 3
- Not working with ~/.python_history
- threading.excepthook new in python 3.8
- Include Django middleware in better-exceptions HOT 3
- ModuleNotFoundError: No module named 'better_exceptions.integrations' HOT 3
- weird escape chars instead of lines HOT 5
- why "export BETTER_EXCEPTIONS=1" works? HOT 1
- terminfo (tmux-256color, xterm-256color) not considered to be valid HOT 6
- Don't print stack frames from certain libraries HOT 5
- How to hide sensibles data like passwords, tokens, ... HOT 1
- 0.3.3: pytest is failing HOT 3
- Installing from pip triggers a "WARNING: There was an error checking the latest version of pip." HOT 1
- f_lineno not an attribute on traceback
- Define license on pypi HOT 2
- Add environment variable support for MAX_LENGTH initialization
- How to use better-exceptions in pytest?
- Can't work in child process HOT 3
- Code difference
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from better-exceptions.