g2log library sample