Some progress with log monitoring.
Iteration 1.
tests.