@staticmethod
    def _log(severity, message, value=None):
        """
            Log a message

            @param severity: the severity of the message
            @param message: the message
            @param value: message suffix (optional)
        """

        logger = logging.getLogger(__name__)
        logger.propagate = False

        msg = "%s: %s" % (message, value) if value else message
        extra = {"caller": "S3LOG"}
        
        if current.deployment_settings.get_log_caller_info():
            caller = logger.findCaller()
            if caller:
                extra = {"caller": "(%s %s %s)" % caller}
                
        logger.log(severity, msg, extra=extra)
        return

    # -------------------------------------------------------------------------
dataset/ETHPy150Open sahana/eden/modules/s3log.py/S3Log._log/original