from inspect import getouterframes
from inspect import currentframe


def logger(func):
    line_number = getouterframes(currentframe())[1][2]
    print(func.__name__, ':', line_number, sep='', end=' - ')
    return func


@logger
def adder(a, b):
    print(a + b)


@logger
def multiply(a, b):
    print(a * b)


adder(1, 2)
adder(10, 2)
adder(1, 20)
adder(10, 20)

multiply(1, 2)
multiply(10, 2)
multiply(1, 20)
multiply(10, 20)
