Code Monkey home page Code Monkey logo

Comments (4)

tarekziade avatar tarekziade commented on August 26, 2024

But all logs are written to the file /var/log/circus/pier.err . And NO content in the file /var/log/circus/pier.err.

Did you mean /var/log/circus/pier.log stays empty ? I suspect that's because Pyramid sends its log to the stderr only. You should configure Pyramid itself to send data to the right stream

from chaussette.

sneridagh avatar sneridagh commented on August 26, 2024

@tarekziade I think that the problem is that Chaussette is not loading the logging configuration from the paster app .ini, like for example Pyramid pserve and gunicorn does.

It's possible to have it in chaussette too? This will prevent to have different ways to configure logging depending of the scenario.

This is how Pyramid does it (similar to Gunicorn way):

path, _ = _getpathsec(config_uri, None)
parser = configparser.ConfigParser()
parser.read([path])
if parser.has_section('loggers'):
    config_file = os.path.abspath(path)
    return fileConfig(
        config_file,
        dict(__file__=config_file, here=os.path.dirname(config_file))
        )

I think that I can make a patch to make Chaussette support it. What do you think?
V.

from chaussette.

sneridagh avatar sneridagh commented on August 26, 2024

@tarekziade Just opened a pull request (#32) that just does that.
Cheers,
V.

from chaussette.

tarekziade avatar tarekziade commented on August 26, 2024

Merged, thanks. Make sure you add yourself to THANKS

from chaussette.

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.