hayaku/Hayaku-Core — Issue #61: Add logging of user actions
Author: kizu
Created: 2012-01-31 13:44:34+00:00
State: open

It'd be cool to have a knowledge how exactly users use Hayaku, which abbreviations they use and how often. So, we could try to log those actions and send them to us.

We should log:

1. Some info about the user's system: OS and it's version, sublime's version etc.
2. The settings of Hayaku (once at first and later only if they're changed).
3. If the zen is installed.
4. The usage sessions (different files?), but without any actual filenames, we must only differ the groups of abbreviations.
5. The triggered abbreviations.
6. the abbreviations user undoed.

There must be an option `hayaku_send_logs_to` in preferences to enable/disable logging, it could contain the following values:

1. `server` — live usage logging.
2. `file` — log to files, so we could request them when we need.
3. `void` — disable the logging at all.

Logging to server would be enabled by default while Hayaku is in alpha/beta state. It would log the data in file and send it when possible to our server.

Logging to file would just log into file, without any actual sending. This would be enabled by default on Hayaku release.

Logging to void would exist if some user would become paranoid and would want to disable it at all. Maybe this can be enabled by default on release, but I tend to file logging here.