« è¯ãåã®MacãªPerlã¦ã¼ã¶ã¼ã«éããããªãã®Perlã¢ããªãMacã¢ããªã«ããæ¹æ³ (MacççPAR) | Main | è¹ã¯ãããªãããã¯ã㿠» Log::Dispatch::Screen::Color - ãã°ã«è²ä»ããã Log::Dispatch::Screen::Color ã shipit ãã¾ããã(ãã½ãã¨ãã¯ãã£ã¡) æ¨å¹´æ«ã«ç©ºåã®log colorãã¼ã ããã£ãã®ã§ãããæè¿åãããããLog::Dispatchãã¾ã¨ãã«ä½¿ãããã«ãªã£ãã®ã§ãLog::Dispatch::Screenã«è²ä»ããããªã£ã¦ä»ãã¾ããã ããã§ããhirose31ãããåãã¦ãã®ã§ä½ãã¾ããã ãããªã³ã¼ã㨠use strict; use warnings; use Log::Dispatch::Config; Log::Dispatch::Config->configure(
vkgtaroããã«å¯¾æãã¦ã¨ããããã§ã¯ããã¾ããããYappoããã®ããããããã£ãã®ã§ãã°ã«è²ãã¤ããããããã«ãã¾ãããTerm::ANSIColorãå ¥ã£ã¦ãããã¨ãåæã«ãã¦ãã¾ãã®ã§ãå¿ è¦ãªãé©å®ã¤ã³ã¹ãã¼ã«ãã¦ï¼PREREQ_PMã«ã¯å ¥ãã¦ãã¾ããï¼ã use Log::Dump; __PACKAGE__->logcolor( important => 'red bold on_white' ); __PACKAGE__->log( important => 'message' );ã®ããã«ããã¨ãimportantãªã©ãã«ãã¤ããã¡ãã»ã¼ã¸ã«è²ãã¤ãã¾ãã è²ãã¤ããããªããªã£ãããlogcolorã«0ãå ¥ãã¦ããã°OKãã¾ããlogfileã使ã£ããã¡ã¤ã«åºåæã«ã¯è²ãã¤ããªãããã«ãã¦ããã¾ãã
ååã®éããåºæ¬çã«ã¯ãããã°ç¨ã®ãã¬ã¼ãªã®ã§ãããuseããã ãã§logãªã©ã®ã¡ã½ãããã¯ãã¦ããªãã¸ã§ã¯ãã ããã¨ãªãã ããã¨æ°ã«ããæ¾ãè¾¼ããã¨ããã®ï¼ã ãï¼ã売ãï¼ãããã $c->log->info("message") ã®ãããªAPIã¯ãã¹ãç¨ã®ã¢ãã¯ãã¤ããã¨ãã¨ãããã¬ã¼ãåãæ¿ããããªã£ãã¨ãã¨ãã«é¢åãªãã¨ã«ãªããã¡ï¼ã SYNOPSISã¯ãããªæãã use Log::Dump; # ã¯ã©ã¹ããç´æ¥log __PACKAGE__->log( error => 'foo' ); # ãªãã¸ã§ã¯ãããããã¡ãã使ãã sub some_method { my $self = shift; # å¼æ°ãè¤æ°ã«ãããã¦ãã¦ãããªãã¸ã§ã¯ãã¾ããã§ãç¡åé¡ # ï¼å¿ è¦ãªãData::Dumpã§ãã³ãããï¼ $self->log( info => 'my self is ', $s
Log::Dispatch ã¯å¤§å¥½ããªã¢ã¸ã¥ã¼ã«ã®ã²ã¨ã¤ãªãã ãã©ãããã ãã ã¨ã¤ãã¤ãå¾®å¦ã Log::Dispatch::Config ã使ããã¨ã§ããã¼ã¼ä¾¿å©ã«ãªããå¿ é ã miyagawa ãã㯠5 年以ä¸ãåã«ããä½ã£ããã ãªãã ååããèãããã®ã§ãåã®ããæ¹ãæ¸ãã¦ããã ãã§ã«CPANã« Catalyst::Plugin::Log::Dispatch ã¨ããã®ãããã®ã ãã©ããªããããã¦ãªãã®ã§ããã¯ä½¿ããã以ä¸ã®ããã«ãã¦ããã ã¾ã MyApp::Logger ã¨ãããã®ããã package MyApp::Logger; use strict; use warnings; use Log::Dispatch::Config; use Log::Dispatch::Configurator::YAML; use Catalyst::Utils; use NEXT;
cronolog.org Welcome to cronolog.org, the home of the cronolog web log rotation program. ãããapacheã¨ãã®logããã£ãããã¼ãã¼ãããã¦ãªãã¦ãã¬ãã¼åå²ããã¹ã¯ãªããæ¸ãã®ããã©ããã¼ã£ã¦ã¨ãã«ããã使ãã¨ä¾¿å©ããã®cronologã«ä¸ç·ã«ä»ãã¦ããcronosplitã£ã¦ã®ã§ããã£ã¨æ¥å¥ã«åå²ãã¦ããã¾ãã % cronosplit --template "access_log.%Y%m%d" access_log ã§ãã£ã¡ããããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}