towards struct logging