I’m developing a server that needs to generate its access_log in a specific format. I’m using Test::Nginx::Socket to drive the development. I see that there are quite a few ways to use the error_log in tests, but I can’t figure out how to do the same for the access_log. I don’t speak Perl very well, so I might just be missing something obvious. All I really want is to do something along the lines of:
--- access_log
1116109454797039739
to confirm that codes that are supposed to be logged make it into the access log. Is there a way to do this, or to inherit from the error log functionality and act upon the other file?
Best regards,
Mike