GithubHelp home page GithubHelp logo

clean up logging about geni-ch HOT 3 CLOSED

geni-nsf avatar geni-nsf commented on August 10, 2024
clean up logging

from geni-ch.

Comments (3)

ahelsing avatar ahelsing commented on August 10, 2024

Hmm, so i could just set chapi.log_file, but i assume the problem is that AMsoil/src/main.py, which is started as www-data, needs to be able to write the log file. Maybe the installer should create a directory, /var/log/chapi/, which is owned by www-data? Or you can leave it as /tmp/chapi.log in the default config file, and puppet can create that directory and change the setting. I'm fine either way, but i think that (a www-data-owned subdir of /var/log) is the right kind of solution.

Trac comment by chaos on 11-12-2013 at 11:29

from geni-ch.

ahelsing avatar ahelsing commented on August 10, 2024

Oh, actually: you probably want chapi.log and amsoil.log in the same directory, right? So either put those both in some subdirectory of /usr/share/geni-ch (currently the latter is /usr/share/geni-ch/chapi/AMsoil/log/amsoil.log, and install_ch contains a chown so that www-data can write to it), or (better, IMO), put both of them in /var/log/chapi/.

Trac comment by chaos on 11-12-2013 at 12:52

from geni-ch.

ahelsing avatar ahelsing commented on August 10, 2024

At startup, AMsoil still writes to that amsoil.log - changing that will require edits to the amsoil code.

But once CHAPI starts up, logs all go to the same file - /var/log/geni-chapi/chapi.log

Similarly, /var/apache2/error.log gets some log messages, until CHAPI starts up.

CHAPI log file location, format, and log level are all configurable with settings in chapi.ini

By default, we log at INFO.

By default, we log only a summary of each method invocation and result, but if verbose mode is on, we log the entire method call/response.

Trac comment by ahelsing on 11-28-2013 at 06:34

from geni-ch.

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.