RAII exercise to log enter/exit messages for functions including IN, OUT, INOUT arguments