Is there a realtime apache/php console similar to webrick or mongrel with ruby on rails?
是否有类似于webrick或mongrel的实时apache / php控制台与ruby on rails?
I want to be able to monitor what the heck my server is doing.
我希望能够监控我的服务器正在做什么。
edit:
but I don't want to grep the log
但我不想grep日志
Thanks!
5 个解决方案
#1
I believe FirePHP might be somewhat equivalent to what your looking for.
我相信FirePHP可能与你想要的有些相同。
Simple Example:
<?php
FB::log('Log message');
FB::info('Info message');
FB::warn('Warn message');
FB::error('Error message');
?>
alt text http://www.firephp.org/images/Screenshots/SimpleConsole.png
alt text http://www.firephp.org/images/Screenshots/SimpleConsole.png
#2
There's always gdb and strace/dtrace. There's also the xdebug module but its not real time.
总有gdb和strace / dtrace。还有xdebug模块,但它不是实时的。
#3
You can use the following command in your application directory:
您可以在应用程序目录中使用以下命令:
mongrel_rails start -B
This starts it in debug mode and gives you all the requests just like Webrick. Yes, including all those 'puts' statements.
这将在调试模式下启动它,并像Webrick一样为您提供所有请求。是的,包括所有那些“看跌期权”的陈述。
#4
There is a really simple way: instead of monitoring the access.log apache2 file or the mongrel one, you can simple tail the production.log file and you will get the exact same behavior of webrick. So a solution is:
有一种非常简单的方法:不是监视access.log apache2文件或mongrel文件,你可以简单地拖尾production.log文件,你将得到webrick完全相同的行为。所以解决方案是:
tail -f /your/project/path/log/production.log
#5
ApacheTop may not quite do what you want, but just in case.. and you might find it useful nonetheless :) It's basically like UNIX top but for Apache.
ApacheTop可能不会做你想要的,但以防万一..你可能会觉得它很有用:)它基本上像UNIX*但是对于Apache。
#1
I believe FirePHP might be somewhat equivalent to what your looking for.
我相信FirePHP可能与你想要的有些相同。
Simple Example:
<?php
FB::log('Log message');
FB::info('Info message');
FB::warn('Warn message');
FB::error('Error message');
?>
alt text http://www.firephp.org/images/Screenshots/SimpleConsole.png
alt text http://www.firephp.org/images/Screenshots/SimpleConsole.png
#2
There's always gdb and strace/dtrace. There's also the xdebug module but its not real time.
总有gdb和strace / dtrace。还有xdebug模块,但它不是实时的。
#3
You can use the following command in your application directory:
您可以在应用程序目录中使用以下命令:
mongrel_rails start -B
This starts it in debug mode and gives you all the requests just like Webrick. Yes, including all those 'puts' statements.
这将在调试模式下启动它,并像Webrick一样为您提供所有请求。是的,包括所有那些“看跌期权”的陈述。
#4
There is a really simple way: instead of monitoring the access.log apache2 file or the mongrel one, you can simple tail the production.log file and you will get the exact same behavior of webrick. So a solution is:
有一种非常简单的方法:不是监视access.log apache2文件或mongrel文件,你可以简单地拖尾production.log文件,你将得到webrick完全相同的行为。所以解决方案是:
tail -f /your/project/path/log/production.log
#5
ApacheTop may not quite do what you want, but just in case.. and you might find it useful nonetheless :) It's basically like UNIX top but for Apache.
ApacheTop可能不会做你想要的,但以防万一..你可能会觉得它很有用:)它基本上像UNIX*但是对于Apache。