How to disable logging in CherryPy?

devquora
devquora

Posted On: Nov 24, 2022

 

Disabling File Logging in CherryPy :

To disable file logging in CherryPy, simply set an empty string to the log.access_file or log.error_file keys in your global configuration.

cherrypy.config.update({'log.access_file': '',
                        'log.error_file': ''})

Disabling Console Logging in CherryPy :

To disable Console logging in CherryPy, simply set log.screen to False in your global configuration.

cherrypy.config.update({'log.screen': False})

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    CherryPy Interview Questions

    What is CherryPy?

    CherryPy is an object-oriented HTTP web application framework based on Python programming language.CherryPy is designed..

    CherryPy Interview Questions

    Why Cherrypy?

    CherryPy is now more than ten years old and it is has proven to be very fast and stable. It is being used in production..

    CherryPy Interview Questions

    List some features of Cherrypy Framework?

    Below is list of some key features of Cherrypy FrameworkA reliable, HTTP/1.1-compliant, WSGI thread-pooled web server...