Skip to content

Comment on Go Debugging with Delve, or No More Fmt.Printfsparent

Comments

Print a known prefix every time you log. Or slap together a simple logging module that adds said prefix. Then to browse, use `tail -f log_file.txt | grep "PREFIX - "`. Console tabs makes it easy enough so that doing this with a bash script and opening tabs for each log prefix has fulfilled my need for such a tool.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.