デバッグログ

モードの指定

ウェブアプリケーション起動時

 MOJO_MODE=debug1 plackup ./script/myapp

ログ書き込み

 package MyApp;
 
 use strict;
 use warnings;
 use utf8;
 use base 'Mojolicious';
 
 sub startup {
    my $self = shift;
    $self->log->error('test1');
 }

ログファイルに"test1"と書き込まれる。

参考


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2011-03-06 (日) 19:49:32