Comments (3)
Author: ivan
Attached files are a work in progress that is almost entirely complete. This code has been tested to work under modpython and the django test server. All that is needed is to convert existing print statement to output using a logger object, as below.
Both files (modpython_logging.py, and init.py) should be placed into geni/.
To set things up, you will need two extra lines in your settings.py file:
logging settings
LOG_VIA_MODPYTHON = False
LOGGING_FILEPATH = FILES_ROOT + '/geni/log.geni'
To use logging inside of django python code, do something like:
import logging
...
logger = logging.getLogger('geni.control.views')
...
logger.debug("get_form is None")
from clearinghouse.
Author: justinc
Milestone Geni Portal v2.1 Release deleted
from clearinghouse.
Author: jsamuel
Logging from django website code works in the new seattlegeni whether run through apache or through the django webserver during development. When logged through apache, it goes to the apache error log for the !VirtualHost that seattlegeni is setup on.
from clearinghouse.
Related Issues (20)
- Deployment script removes (empty) statekeys/ directory
- Write docs for updating Clearinghouse?
- Update to use Django 1.7 / 1.8 HOT 2
- Creating additional dir's before hand HOT 1
- Make list of platform installers configurable HOT 1
- Fix node_transition_lib docstring
- Ambitious vessel resource targets leave "small" nodes in limbo HOT 1
- New MySQLdb bindings break keydb interface
- Grepping out "screen" could be counter-productive HOT 2
- Unfinished comments (cropped or forgotten) in backend/config.py. HOT 4
- Skip mode in initialize.py / old version of initialize.py HOT 3
- Docs: Use `virtualenv` for installing Django
- Docs: Explain not using `social_auth`
- Align keydb config and website settings
- Clearinghouse logs grow too quickly HOT 3
- Use buildscripts for CH deployment and update
- Caught Exceptions should be logged HOT 1
- Explosive Logs HOT 3
- Check and possibly rethink blanket `except`s
- MySQL 5.7.5+ requires change in `website/settings.py`
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 clearinghouse.