How to view two logs in one window?

In this example I will show you how to view Yii framework based app log and MySQl queries, both in realtime.Run terminal on your development server and type multitail. If it’s not installed type (on Debian based systems):

sudo apt-get update && sudo apt-get install multitail

Now choose logs to view and type:

sudo multitail -s 2 /mnt/www-data/htdocs/intranet/protected/runtime/application.log /var/log/mysql/mysql.log

Sudo in this case is needed because you don’t have privileges to view sql queries with all parameters 🙂

multitail example usage
multitail example usage

Published by

Konrad Fedorczyk

Konrad Fedorczyk

I'm interested in programming and gamedev. I especially luv HTML5 and everything connected to web technologies.

Leave a Reply

Your email address will not be published. Required fields are marked *