Port srgs.cc to callback logging