QBittorrent::Api::Log
The log endpoint group (/api/v2/log/).
Provides access to the qBittorrent main log and peer log. Both endpoints
support incremental fetching via last_known_id: pass the highest id
seen so far to receive only newer entries.
log = QBittorrent::Api::Log.new(client)
log.main(warning: true, critical: true) # only warnings/criticals
log.peers(last_known_id: 42_i64) # peer log since id 42
Constructors
new(client : Client)
SourceInstance methods
main(normal : Bool | Nil = nil, info : Bool | Nil = nil, warning : Bool | Nil = nil, critical : Bool | Nil = nil, last_known_id : Int64 | Nil = nil) : Array(Model::LogEntry)
GET log/main — returns entries from the main log.
normal, info, warning and critical filter which severity levels
are included (each defaults to true server-side; leave nil to use
the server default). last_known_id returns only entries with a greater
id (server default -1, i.e. all entries).