All-rounder Graham Wagg has signed a contract extension with Glamorgan which keeps him at the county until 2015.