How to use the janus.janus_logging.janus_logger.enable function in janus

To help you get started, we’ve selected a few janus examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xamoom / xamoom-janus / janus / decorators.py View on Github external
self.meta = meta
        self.links = links
        self.included = included
        self.message = None #gets set with the JanusResponse passed from calling function
        self.success_status = success_status
        self.before_send_hook = before_send_hook
        self.include_traceback_in_errors = include_traceback_in_errors
        self.error_hook = error_hook
        self.include_relationships = include_relationships
        self.options_hook = options_hook
        self.cached_get_hook = cached_get_hook
        self.cached_set_hook = cached_set_hook
        self.nest_in_responses = nest_in_responses

        if logging:
            janus_logger.enable()
        else:
            janus_logger.disable()