@Fluentd Meetup 2014/05/13
ãåã®PSGIãã¡ã¤ã«ãåã®ããã«ã¦ã§ã¢ã§ãã£ã±ãã«ããããã¨ããå°è©ãæãã¤ãããã©ãåãããã»ã©Plack::Middlewareãæ¸ãã¦ãªãkazeburo ã§ãã ãããªåãä¸çªæè¿æ¸ãã Plack::Middleware ãYet Anotherãªã¢ã¯ã»ã¹ãã°è¨é²ããã«ã¦ã§ã¢ AxsLog ã§ããæäºäººçµã¯ä»å¹´ã§ããã¥ã¼20å¨å¹´ãããã§ãããããã¾ãé¢ä¿ããã¾ããã https://metacpan.org/module/Plack::Middleware::AxsLog Plackã®ã³ã¢ããã±ã¼ã¸ã®ä¸ã« Plack::Middleware::AccessLog ãå«ã¾ãã¦ã¾ããã以åãããã®ããã«ã¦ã§ã¢ãæ¯è¼çãéããã¨ãããã¨ãæ°ã«ãªã£ã¦ãã¾ããããã¤ã¯ããã³ããã¼ã¯ã§ããã $ cat test.psgi sub { [200,['Content-Type'=>'text
Log::Minimal v0.02ããªãªã¼ã¹ãã¾ãããxaicronããã®patchã«ããåºåãããã°ã®ã¬ãã«ãå¤æ´ãããã¨ãã§ããããã«ãªãã¾ããã WARN以ä¸ã®ãã°ã ããåºãããå ´åã$Log::Minimal::LOG_LEVEL ãå¤æ´ãã¾ãã use Log::Minimal; local $Log::Minimal::LOG_LEVEL = "WARN"; infof("info"); #åºåãããªã warnf("warn"); #åºåããã ããã©ã«ãã®ã¬ãã«ã¯DEBUGã§ãããªãããããã¯ã¡ãã»ã¼ã¸ãåºãã«ã¯ç°å¢å¤æ°ãè¨å®ããã¦ããå¿ è¦ãããã¾ãã ã¨ããã§ãLog::Minimalã§ã¯4ã¤ã®ãã°ã¬ãã«ãDEBUGãINFOãWARNãCRITICALããµãã¼ããã¦ãã¾ãããä»ã®Logã¢ã¸ã¥ã¼ã«ã§ã¯ãã詳細ãªã¬ãã«ãç¨æãã¦ãããã®ãããã¾ãããã®ãããã¢ããªã±ã¼ã·ã§
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}