Comments (7)
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 inloom/logs
. To display the log file to a terminal, use for exampletail -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.
Why can't we have stdout enabled?
from loom.
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.
Note to myself: add a timestamp to a loom
log file, as is done for web_loom
log files.
from loom.
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.
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.
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)
- Strange failure when creating a large number of networks HOT 19
- save data with version info HOT 1
- Data saving doesn't work anymore HOT 26
- Intersection near a branch cut causes problems HOT 1
- Massless regular punctures
- Too many intersections reported HOT 5
- duplicate data structures? HOT 3
- Degenerate covers: sheet monodromy of higher-type ramification points of types II,III,IV HOT 1
- current master: generating network fails with HOT 20
- Keeping the interpolation intersection finding routine HOT 1
- Numerics of odeint HOT 1
- Rotation of z-plane should be somehow indicated in final output HOT 3
- Convention for \lambda_{SW} HOT 2
- specifying punctures like e^{2 pi i/3} HOT 6
- Lack of error message in web UI
- Occasional trivialization errors HOT 2
- "encountered a problem with sheet tracking" HOT 8
- sage bug
- Read Me Colab Links not working
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 loom.