@staticmethod
def _find_the_caller(i=0):
    """Finds the caller of logging method

        :param i: number of upper elements relatively to the place of calling
            `_find_the_caller` method
        :return: a tuple where the first element is a filename, the second is
            a line number and the third is a line of code
        """
    import inspect
    i = i + 2
    caller = inspect.stack()[i]
    return caller[1], caller[2], caller[4][0].rstrip('\n').strip()
