driftlog

Examples & recipes

Small patterns people actually use day to day.

A quick one-liner without opening an editor

echo "deployed 1.4.2, no incidents" | driftlog new --stdin --tag work --tag release

Morning standup, prefilled

Drop this in your shell config:

standup() {
  printf '## Yesterday\n\n## Today\n\n## Blockers\n' \
    | driftlog new --stdin --tag standup
}

What did I do last week?

driftlog list --since "last monday" --until "last friday" --oneline

Weekly digest by email (cron)

# every Friday at 17:00
0 17 * * 5  driftlog export --since "7 days ago" --format md \
              | mail -s "Weekly journal" me@example.com

Grep is still your friend

Because entries are plain files, anything that reads text works:

rg -l "#postmortem" ~/.driftlog | wc -l
git -C ~/.driftlog log --oneline   # if you keep the journal in git

Print a year

driftlog export --since 2025-01-01 --until 2025-12-31 --format html --out 2025.html
Keeping journal_dir in a private git repo is a popular setup: free history, easy sync, and you can encrypt with git-crypt or driftlog's built-in age backend.