Add f_write error code to sdc debug message
Move eventlogger to common/util