regex logging library