A perl-based log parsing framework, and a grid job statistics reporter for Nordugrid ARC