Fix order text match ranges.
Merge pull request #598 from axsh/feature-alarm-log

Fix order text match ranges.
Merge pull request #285 from axsh/feature-alarm

Feature alarm