1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Page_history: Add option to log all page visits to a separate file

This commit is contained in:
gnosygnu
2016-11-05 07:33:37 -04:00
parent e346afeea1
commit 5ff9b8d08a
3 changed files with 8 additions and 1 deletions

View File

@@ -65,6 +65,8 @@ public class Xou_history_mgr implements Gfo_invk {
itm = new Xou_history_itm(url.Wiki_bry(), To_full_db_w_qargs(url, ttl));
itms.Add(key, itm);
}
if (gplx.xowa.apps.apis.xowa.Xoapi_addon.app__page_history__log_all)
Io_mgr.Instance.AppendFilStr(history_fil.GenNewNameAndExt("log_all.csv"), String_.Format("{0}|{1}|{2}\n", Datetime_now.Get().XtoStr_fmt_iso_8561_w_tz(), itm.Wiki(), itm.Page()));
itm.Tally();
}
private byte[] To_full_db_w_qargs(Xoa_url url, Xoa_ttl ttl) {