Changed the logging mechanism

After profiling, the regex library for logging was consuming way to
much time. I changed it to a simple {name, id} match filter.