Giter Club home page Giter Club logo

Comments (2)

vbauerster avatar vbauerster commented on May 27, 2024 1

Hello!
If I understood correctly, you'd like to output an error while a bar is running?
If so, there are several ways to achieve this.

  1. Output error message below a bar, when there is an error. BarNewLineExtend option is your friend here, refer to example.
  2. Display an error in place of some decorator, in that case you need to implement custom decorator.
    I used this approach here.

from mpb.

MichelDiz avatar MichelDiz commented on May 27, 2024

Hi vbauerster!

Thanks for the answer

Actually I'm thinking now and do something like this https://stackoverflow.com/questions/19965795/go-golang-write-log-to-file at the same time that we show the bars.

In my case it would be a mixture of your approach with this approach of writing Logs to a file.

I have not started anything yet, still probing and also starting with Go Language.

PS. The big problem is that when I use go run main.go | & tee -a bartest.txt
I get a gigantic and ugly Log. This is not what you want in a log file.

Cheers.

from mpb.

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.