added Logger which is a rewrite of globToRegex using Monad