moving logging configuration to log
added regexp supports - needs testing