ÆÄÀÏ :: ²¿¸® :: µð·º½º

ÁÖ¾îÁø µð·ºÅ丮 ¼¼Æ®ÀÇ ¸ðµç ÀÏÄ¡ÇÏ´Â ÆÄÀÏ ²¿¸®
Áö±Ý ´Ù¿î·Îµå

ÆÄÀÏ :: ²¿¸® :: µð·º½º ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Jon Schutz
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~jjschutz/

ÆÄÀÏ :: ²¿¸® :: µð·º½º ű×


ÆÄÀÏ :: ²¿¸® :: µð·º½º ¼³¸í

ÆÄÀÏ :: Tail :: Dir´Â ÁÖ¾îÁø µð·ºÅ丮 ¸ñ·Ï¿¡¼­ Çϳª ÀÌ»óÀÇ ÆÄÀÏÀÇ ³¡¿¡ Ãß°¡ µÈ ¸ðµç ÁÙÀ» ¸ð´ÏÅ͸µÇÏ°í ó¸®ÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ¼¼¼Ç °£ »óÅ À¯Áö ¹× ÆÄÀÏ º¯°æ À̺¥Æ®ÀÇ Ä¿³Î ¾Ë¸²À» »ç¿ëÇÏ¿© È¿À²¼ºÀ» ±Ø´ëÈ­ÇÕ´Ï´Ù. µð·ºÅ丮 ¸ñ·ÏÀÌ ¸ð´ÏÅ͸µµÇ¾î Ç¥½Ã / Á¦¿Ü µÈ Ç¥Çö½ÄÀ» ÇÊÅ͸µ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¶óÀÎÀÌ Ãß°¡ µÉ ¶§ ¾Ë¸²À» À§ÇØ °ü½ÉÀÖ´Â ÆÄÀÏ ¸¸ ¼±ÅÃÇÒ ¼ö ÀÖ½À´Ï´Ù.ÀÌ ¸ðµâÀº ¿ø·¡ ¸¹Àº Apache À¥ ¼­¹ö ·Î±× ÆÄÀÏÀÇ ¹«¼Õ½Ç ·Î±ëÀ» ½ºÅ©¶óÀ̺꿡 Áö¿øÇϱâ À§ÇØ ¸¸µé¾îÁ³½À´Ï´Ù. ±â¹Ý ·Î±ë ¼­ºê ½Ã½ºÅÛ (ÆÄÀÏ :: Tail :: scribe, log :: dispatch :: scribe)À» ÂüÁ¶ÇϽʽÿÀ. µû¶ó¼­ ÁÖ¿ä ¿ä±¸ »çÇ×Àº Áß´Ü (¼­¹ö ÀçºÎÆðú °°Àº)°£¿¡ ¸¶Áö¸·À¸·Î ¾Ë·ÁÁø »óÅ¿¡¼­ ´Ù½Ã ½ÃÀÛÇÒ ¼ö ÀÖµµ·Ï »óŸ¦ À¯ÁöÇؾßÇÕ´Ï´Ù. ·Î±× ȸÀü Áß¿¡ »õ ÆÄÀÏÀÇ À̸§ º¯°æ ¹× »ý¼ºÀ» µû¸£·Á¸é .SnopsistyPical »ç¿ë¹ý : ÆÄÀÏ :: ²¿¸® :: µð·ºÅ丮; MY $ TAILER = FILE :: TAIL :: DIR-> NEW (filter => qr /.* ¾×¼¼½º. * Log $ /, processor => sub {my ($ filename, $ lines) = @_ ...} ,); $ tailer-> watch_files (); ¶Ç´Â ¼­ºê Ŭ·¡½º : ÆÐÅ°Áö My :: Tailer; ¹«½º¸¦ »ç¿ëÇϽʽÿÀ; 'ÆÄÀÏ :: Tail :: Dir'À» È®Àå; # Ç¥ÁØ 'ÇÁ·Î¼¼½º'¸Þ¼Òµå ÇÏÀ§ ÇÁ·Î¼¼½º Àç ÁöÁ¤ {MY ($ self, $ filename, $ lines) = @_; ...} Á¦Ç°ÀÇ È¨ÆäÀÌÁö


ÆÄÀÏ :: ²¿¸® :: µð·º½º °ü·Ã ¼ÒÇÁÆ®¿þ¾î