log c method invocation errors