~rogpeppe/juju-core/themue-058-debug-log-api

Viewing all changes in revision 2152.

  • Committer: Tarmac
  • Author(s): Frank Mueller
  • Date: 2013-12-13 13:40:11 UTC
  • mfrom: (2116.3.8 juju-core)
  • Revision ID: tarmac-20131213134011-2mp5zu6n392ibvpw
[r=themue] utils: added Tailer for tailing of logs in API

The Tailer is the initial component of the debug logging command
of the API. It allows the filtered tailing of any ReaderSeeker.
If no filter is passed all lines will be written in the passed
Writer, otherwise only those where the filter function returns
true. The initial number of lines can also be specified, the
filter already works here. So if a File (which is a ReaderSeeker)
containes 100 lines, 10 lines are wanted and 5 match to the
filter only those 5 lines are returned.

https://codereview.appspot.com/36540043/

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: