Giter VIP home page Giter VIP logo

Comments (7)

chan-y-park avatar chan-y-park commented on August 16, 2024

Currently logging output to a terminal (stdout) is disabled by default. Please use one of the following methods to check logs.

  • loom will generate a log file in loom/logs. To display the log file to a terminal, use for example tail -f log_file_path.
  • After importing loom, run the following to print the logging messages to a terminal.
>>> import logging, sys
>>> loom.set_logging(logger_name='loom', logging_level=logging.INFO, 
... logging_stream=sys.stdout, remove_handlers=False)

from loom.

plonghi avatar plonghi commented on August 16, 2024

Why can't we have stdout enabled?

from loom.

chan-y-park avatar chan-y-park commented on August 16, 2024

Well, there are many reasons, and if I list just a few of them that hits my brain,

  • It messes up web server log for web UI
  • It makes it complicated to deal with GUI logs
  • It duplicates the same log when running loom on IPython (Jupyter) notebook.
  • One can redirect logs to stdout anytime using the command I posted above.

But it seems that we have a need to restore the stdout logging when running on a terminal by default, so I will try to find a way to make everyone happy. But it will take a while...

from loom.

chan-y-park avatar chan-y-park commented on August 16, 2024

Note to myself: add a timestamp to a loom log file, as is done for web_loom log files.

from loom.

plonghi avatar plonghi commented on August 16, 2024

I see, these are all valid reasons.
On the other hand, I still think for the version on Github the priority should be development, and it would be desirable to keep the terminal output.
But in the meantime, I'm fine with disabling it again by defalut, I will just introduce an method for enabling it after loading loom.

from loom.

chan-y-park avatar chan-y-park commented on August 16, 2024

Well, the issue with the version priority is, as you can remember from our previous discussion the master branch is supposed to be for the het-math2 that runs the main web UI and is not supposed to be a developmental version, because it cannot be updated as frequently as we want. Anyway, I will try to come up with make it work with terminal too soon.

By the way, why do you want to introduce such a method? Doesn't loom.set_logging work for you? If that's the case, please let me know more about it so that I can fix it.

from loom.

plonghi avatar plonghi commented on August 16, 2024

You are right, that should work too. So let's stick with it.
Regarding compatibility of web-UI, we could make a branch dedicated to the version that runs on het-math2, and keep master for development.

from loom.

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.