Chrome Loggerは、ChromeコンソールでサーバーサイドアプリをデバッグするためのGoogle Chrome拡張機能です。
ほとんどの言語には独自のログ機能がありますが、ブラウザで直接ログを表示する方が便利で簡単な場合もあります。
インサイダー指示。
使用する
Chrome Loggerの使用は非常に簡単です。
- Google Chrome用のChrome Logger拡張機能をインストールします 。
- 拡張機能アイコンをクリックして、現在のタブのドメインのログを有効にします
- サーバー側のライブラリをインストールします。
- Python- http://github.com/ccampbell/chromelogger-python
- PHP- http://github.com/ccampbell/chromephp
- Ruby- http://github.com/cookrn/chrome_logger
- Node.js
http://github.com/yannickcr/node-chromelogger
http://github.com/olahol/express-chrome-logger
- .NET- http://github.com/ChrisMissal/chromelogger
- ColdFusion- http://github.com/s992/chromelogger-cf
- ログを追加する
# django example import chromelogger as console from django.http import HttpResponse def index(request): response = HttpResponse("Hello, world. You're at the poll index.") console.log('Hello console!') console.log(request.user) return response
- コンソールをご覧ください!
さて、いくつかのリンク:
オフサイト | Github