logged decorator