dlog is a small CLI for daily work log.
go install github.com/okaryo/dlog@latestdlog "task progress update"
dlog amend "corrected task progress update"
dlog
dlog log
dlog log --date 2026-04-12
dlog md
dlog md --date 2026-04-12dlog "text"appends a log entry for today with the current local timestamp.dlog amend "text"replaces today's most recent log entry while keeping its original timestamp.dloganddlog logshow today's logs in reverse chronological order.dlog log --date YYYY-MM-DDshows logs for the specified date.dlog mdprints today's logs in Markdown order from oldest to newest.dlog md --date YYYY-MM-DDprints logs for the specified date in Markdown order.- Displayed times use the timezone recorded in each log entry, not the viewer's current local timezone.
Record logs for today:
$ dlog "task progress update"
$ dlog "api design"
$ dlog "bug fix"Amend the most recent log entry:
$ dlog amend "bug fix (retry with test case)"Show today's logs in reverse chronological order with dlog or dlog log:
$ dlog
2026-04-12
11:10 bug fix (retry with test case)
10:25 api design
10:03 task progress update$ dlog log
2026-04-12
11:10 bug fix (retry with test case)
10:25 api design
10:03 task progress updateShow a specific date:
$ dlog log --date 2026-04-11
2026-04-11
18:45 previous day taskOutput logs as Markdown in chronological order:
$ dlog md
# 2026-04-12
- 10:03 task progress update
- 10:25 api design
- 11:10 bug fix (retry with test case)Output a specific date as Markdown:
$ dlog md --date 2026-04-11
# 2026-04-11
- 18:45 previous day task- Logs are stored under
~/.dlog. - Each day is stored as one JSON file named
YYYY-MM-DD.json. - Timestamps are saved in RFC3339 format with the local time zone.
Example:
{
"date": "2026-04-12",
"logs": [
{
"timestamp": "2026-04-12T10:03:21+09:00",
"text": "task progress update"
}
]
}- Additional export formats
- Daily and weekly summaries
- Tags