[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-mode as a logging target
From: |
Russell Adams |
Subject: |
Re: org-mode as a logging target |
Date: |
Sun, 21 Jun 2020 21:25:48 +0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
Take my upvote!
+1
On Sun, Jun 21, 2020 at 09:09:01PM +0200, Diego Zamboni wrote:
> This is actually pretty cool! Thanks for the tip,
> --Diego
>
>
> On Sun, Jun 21, 2020 at 5:39 PM Meng Weng Wong <mengwong@gmail.com> wrote:
>
> > I've been enjoying a featherweight alternative to log levels, made
> > possible by org-mode.
> >
> > Try this the next time you write a little throwaway command-line utility
> > script:
> >
> > Step 1: Add asterisks to the front of your printf traces.
> >
> > Step 2: Tee your STDOUT / STDERR to a file named log.org
> >
> > Step 3: Open the log file in org-mode.
> >
> > Step 4: Rejoice!
> >
> > Optional: You can tail the logfile with M-x auto-revert-mode.
> >
> > This illustration uses a Github scraper as an example:
> > https://github.com/mengwong/git-scrape
> > https://twitter.com/mengwong/status/1274236595109982208
> >
> > This is no substitute for real structured logging, of course :)
> >
> > That is all.
> >
> >
------------------------------------------------------------------
Russell Adams RLAdams@AdamsInfoServ.com
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3