"logged" decorator renamed to "wrap"
monkey patch logging adding TRACE=5 level constant
copy all funciton attributes when wrapping