airbyte-cdk/python/airbyte_cdk/logger.py
def log_by_prefix(self, message, default_level):
        """Custom method, which takes log level from first word of message"""
        split_line = message.split()
        first_word = next(iter(split_line), None)
        if first_word in self.valid_log_types:
            log_level = first_word
            rendered_message = " ".join(split_line[1:])
        else:
            log_level = default_level
            rendered_message = message
        self.log(log_level, rendered_message)
Custom method, which takes log level from first word of message
Custom method, which takes log level from first word of message
Custom method which takes log level from first word of message
def log_by_prefix(self, message, default_level):
        split_line = message.split()
        first_word = next(iter(split_line), None)
        if first_word in self.valid_log_types:
            log_level = first_word
            rendered_message = " ".join(split_line[1:])
        else:
            log_level = default_level
            rendered_message = message
        self.log(log_level, rendered_message)
def log_by_prefix ( self , message , default_level ) : split_line = message . split ( ) first_word = next ( iter ( split_line ) , None ) if first_word in self . valid_log_types : log_level = first_word rendered_message = " " . join ( split_line [ 1 : ] ) else : log_level = default_level rendered_message = message self . log ( log_level , rendered_message )
Custom method, which takes log level from first word of message
Custom method which takes log level from first word of message
"""Custom method, which takes log level from first word of message"""
self
message
default_level