wrap logging