Feature #2554
Terminate logger after specified number of events
Status: | Resolved | Start date: | 06/01/2016 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | J. Moringen | % Done: | 100% | |
Category: | Common Lisp Tools | |||
Target version: | rsb-0.14 |
Description
The logger should have a commandline option to terminate after having processed a specified number of events.
Associated revisions
Added termination predicate in src/commands/logger.lisp
refs #2554
- src/commands/logger.lisp (logger::while): new slot; stores an optional
termination predicate
(process-events): accept while keyword parameter; when supplied, use
it to decide whether to terminate
(command-execute logger): pass termination predicate to
`process-events' - test/commands/logger.lisp (header): updated copyright
(test logger-root::construction): added case exercising :while initarg
Added stop-after commandline option to logger command in logger/main.lisp
refs #2554
- logger/main.lisp (update-synopsis): added stop-after commandline
option
(main): derive termination predicate from value of stop-after
commandline option and pass to constructed command - CMakeLists.txt: added test for the stop-after commandline option of
the logger command
Added description of --stop-after commandline option in tool-logger.rst
refs #2554
- tool-logger.rst (Description): added description of --stop-after
commandline option
Mention stop-after commandline option in news.rst
fixes #2554
- news.rst (RSB 0.14): mention stop-after commandline option now
accepted by the logger command
History
#1 Updated by J. Moringen almost 8 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset rsb-manual|908ed0b0e005a9b4dd0226f344915ef6bed80a78.
#2 Updated by J. Moringen almost 8 years ago
- Assignee changed from A. Moringen to J. Moringen