Finally got it to work correctly with log4cplus
Replaced values in TestIEType with IANA values
include <sstream> in ErrorContext. Otherwise weird errors happen