# TimeLogger

**TimeLogger** is a lightweight **Retail** addon that records when you log in and out of World of Warcraft—nothing flashy, just reliable timestamps you can use for your own stats, habits, or BI tools.

### What it does

- Logs every **login** and **logout** with **Unix time** and **UTC** (ISO-style), plus **character** and **realm**.
- Builds **session** rows from those events: normal sessions, sessions that ended without a clean logout, and sessions still **open** when you export.
- Stores everything in **SavedVariables** so it persists between sessions.

### Export

- Slash commands: **`/timelogger`** or **`/tlog`**
- Opens a simple window with **Events** (CSV/JSON) and **Sessions** (CSV/JSON).
- **Copy to clipboard** when your client supports it (otherwise select all and copy).

### Housekeeping

- **Prune** old raw events by age (days). Before pruning, the addon saves a **full snapshot** of your current event list to **`events_backup`** so you can recover or archive if needed.

### Disclaimer

- No options panel, no HUD. Just data you can paste into a spreadsheet or pipeline. Designed for those who like tracking play time, session patterns, or feeding a personal dashboard.

---

# Release notes — v1.1.0

- **Sessions** — Export derived sessions with status: normal **closed** sessions, **no_logout** when a new login happened before a logout, and **open** when you’re still in-game (or the last event was a login).
- **Sessions CSV & JSON** — Same window as before; pick the format you need for analysis.
- **Prune** — Optional cleanup: drop events older than *N* days. Your full list is copied to **`events_backup`** first, with a timestamp, so nothing is silently thrown away without a snapshot.
- Raw **login/logout** events with UTC timestamps and character/realm.
- **Events** CSV/JSON export and slash commands **`/timelogger`** and **`/tlog`**.

Thanks for trying TimeLogger—happy tracking.