This is how I display all Nginx logs at once aesthetically (with headings and spacing), in stdout, for comfortable debugging.
Input:
printf '\n\n General: \n\n'; nginx -t; printf '\n\n Access: \n\n'; tail /var/log/nginx/access.log; printf '\n\n Errors: \n\n'; tail /var/log/nginx/error.log
Output:
General:
...
Access:
...
Errors:
...
As you can see, the command is quite long or "heavy".
Is there a shorter (formal?) way to achieve that?