app/package/common_pkg/service_pkg/logger.py
def send(self,
             msg: str,
             lineno=None,
             kill=None,
             is_error=True,
             webhook=False):
        """Send a message into the logging output

            Args:
                msg: log message
                lineno: line number in the code where log send was triggered
                kill: flag to terminate the process on the error
                is_error: flag to signal if message is the error message
                webhook: flag to post message as the webhook post request
        """
        if lineno:
            msg = f"[line: {lineno}] {msg}"
        if is_error:
            self.logs.error(msg)
            self._send_webhook(msg,
                               is_error=is_error)
            if (kill if kill is not None else self.kill):
                sys.exit(1)
        else:
            self.logs.info(msg)
            if webhook:
                self._send_webhook(msg,
                                   is_error=is_error)
            if kill:
                sys.exit(0)
Send a message into the logging output

            Args:
                msg: log message
                lineno: line number in the code where log send was triggered
                kill: flag to terminate the process on the error
                is_error: flag to signal if message is the error message
                webhook: flag to post message as the webhook post request
        
Send a message into the logging output
Send a message into the logging output
def send(self,
             msg: str,
             lineno=None,
             kill=None,
             is_error=True,
             webhook=False):
        if lineno:
            msg = f"[line: {lineno}] {msg}"
        if is_error:
            self.logs.error(msg)
            self._send_webhook(msg,
                               is_error=is_error)
            if (kill if kill is not None else self.kill):
                sys.exit(1)
        else:
            self.logs.info(msg)
            if webhook:
                self._send_webhook(msg,
                                   is_error=is_error)
            if kill:
                sys.exit(0)
def send ( self , msg : str , lineno = None , kill = None , is_error = True , webhook = False ) : if lineno : msg = f"[line: {lineno}] {msg}" if is_error : self . logs . error ( msg ) self . _send_webhook ( msg , is_error = is_error ) if ( kill if kill is not None else self . kill ) : sys . exit ( 1 ) else : self . logs . info ( msg ) if webhook : self . _send_webhook ( msg , is_error = is_error ) if kill : sys . exit ( 0 )
Send a message into the logging output
Send a message into the logging output
"""Send a message into the logging output

            Args:
                msg: log message
                lineno: line number in the code where log send was triggered
                kill: flag to terminate the process on the error
                is_error: flag to signal if message is the error message
                webhook: flag to post message as the webhook post request
        """
self
msg
str
None
lineno
line number in the code where log send was triggered
line number in the code where log send was triggered
kill
flag to terminate the process on the error
flag to terminate the process on the error
is_error
flag to signal if message is the error message
flag to signal if message is the error message
webhook
flag to post message as the webhook post request
flag to post message as the webhook post request