Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bors): merge pull request #344
344: feat(loki): adding multiline support r=abhilashshetty04 a=abhilashshetty04 With multiline support we define starting point of the log block when it gets filtered through `logcli` parameter. Every log that we stdout starts with timestamp(with ansi color char now by default) . In Regex1 , `\x1b\[2m` matches colour unicode pattern. logger adds 2 zero width space also hence Regex has space to match. We might have uncolored timestamp in future. So In Regex2, we handle that scenario. Regex1: '^ \x1b\[2m(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}).(\d{6})Z' Regex2 : '^ (\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}).(\d{6})Z' Co-authored-by: Abhilash Shetty <[email protected]>
- Loading branch information