Giter Club home page Giter Club logo

Comments (13)

isaac-philip avatar isaac-philip commented on June 9, 2024 2

Hello I c this issue still open? I can have a look

from better-exceptions.

philippludwig avatar philippludwig commented on June 9, 2024 1

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.

Qix- avatar Qix- commented on June 9, 2024

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.

majutsushi avatar majutsushi commented on June 9, 2024

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.

Qix- avatar Qix- commented on June 9, 2024

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.

majutsushi avatar majutsushi commented on June 9, 2024

from better-exceptions.

Qix- avatar Qix- commented on June 9, 2024

No problem :)

from better-exceptions.

jw-cpnet avatar jw-cpnet commented on June 9, 2024

Yes, I'm facing the same issue. Could you please consider adding an option to disable coloring?

from better-exceptions.

issuehunt-oss avatar issuehunt-oss commented on June 9, 2024

@issuehunt has funded $50.00 to this issue.


from better-exceptions.

lokesh1729 avatar lokesh1729 commented on June 9, 2024

@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.

Qix- avatar Qix- commented on June 9, 2024

@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.

lokesh1729 avatar lokesh1729 commented on June 9, 2024

@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.

Qix- avatar Qix- commented on June 9, 2024

Nope, nobody has made progress on it.

from better-exceptions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.