add a logging parser to help debug polymorphic recursive parsers