From: Russell Adams <RLAdams@AdamsInfoServ.Com>
To: emacs-orgmode@gnu.org
Subject: Re: org-mode as a logging target
Date: Sun, 21 Jun 2020 21:25:48 +0200 [thread overview]
Message-ID: <20200621192548.GC7218@volibear> (raw)
In-Reply-To: <CAGY83EfwseF0QhRDsGRJDHFM3ENRo8GRA3AOH0aEFTG=RRZB4A@mail.gmail.com>
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
prev parent reply other threads:[~2020-06-21 19:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-20 7:37 org-mode as a logging target Meng Weng Wong
2020-06-21 19:09 ` Diego Zamboni
2020-06-21 19:25 ` Russell Adams [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200621192548.GC7218@volibear \
--to=rladams@adamsinfoserv.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.