GithubHelp home page GithubHelp logo

Comments (3)

choksi81 avatar choksi81 commented on September 16, 2024

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.

choksi81 avatar choksi81 commented on September 16, 2024

Author: justinc
Milestone Geni Portal v2.1 Release deleted

from clearinghouse.

choksi81 avatar choksi81 commented on September 16, 2024

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)

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.