Relaxed monad constraints on logMsg utility.