Add regression tests for csvlog with the logging collector
Michael Paquier <michael@paquier.xyz>
Add regression tests for csvlog with the logging collector These are added in the existing tests of pg_ctl for log rotation, that already tested stderr. The same amount of coverage is added for csvlog: - Checks for pg_current_logfile(). - Log rotation with expected file name. - Log contents generated. This test is refactored to minimize the amount of work required to add tests for new log formats, easing some upcoming work. Author: Michael Paquier, Sehrope Sarkuni Discussion: https://postgr.es/m/CAH7T-aqswBM6JWe4pDehi1uOiufqe06DJWaU5=X7dDLyqUExHg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_ctl/t/004_logrotate.pl | modified | +58 −37 |
Discussion
- Add jsonlog log_destination for JSON server logs 40 messages · 2021-08-31 → 2022-02-11