add logger interface in c