WebUI: Add command to get the logs

Add /query/getLog and /query/getPeerLog to respectively retrieve
the main log and the peer log.

GET /query/getLog
Params:
 - normal (bool): include normal messages (default true)
 - info (bool): include info messages (default true)
 - warning (bool): include warning messages (default true)
 - critical (bool): include critical messages (default true)
 - last_known_id (int): exclude messages with id <= 'last_known_id'

GET /query/getPeerLog
Params:
 - last_known_id (int): exclude messages with id <= 'last_known_id'
This commit is contained in:
Gabriele 2014-12-21 14:00:00 +01:00
commit 01b73bf704
4 changed files with 115 additions and 0 deletions

View file

@ -54,6 +54,8 @@ private:
void action_query_propertiesTrackers();
void action_query_propertiesWebSeeds();
void action_query_propertiesFiles();
void action_query_getLog();
void action_query_getPeerLog();
void action_sync_maindata();
void action_sync_torrent_peers();
void action_command_shutdown();