logging for header