Rewrite of cwd_logger in Go