/**
 * Implements hook_user_logout().
 */
function {{ machine_name }}_user_logout($account) {
  db_insert('logouts')
    ->fields(array(
      'uid' => $account->uid,
      'time' => time(),
    ))
    ->execute();
}
