Fix logging output capture regexp