| ·Î±× :: µð½ºÆÐÄ¡ :: Scribe. FacebookÀÇ Scribe ¼¹ö ¼ÒÇÁÆ®¿þ¾î¸¦ ÅëÇÑ ·Î±ë |
Áö±Ý ´Ù¿î·Îµå |
·Î±× :: µð½ºÆÐÄ¡ :: Scribe. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~jjschutz/
·Î±× :: µð½ºÆÐÄ¡ :: Scribe. ű×
·Î±× :: µð½ºÆÐÄ¡ :: Scribe. ¼³¸í
FacebookÀÇ Scribe Server ¼ÒÇÁÆ®¿þ¾î¸¦ ÅëÇØ ·Î±ë log :: dispatch :: scribe´Â scribe¿¡ ·Î±× :: µð½ºÆÐÄ¡ ½ºÅ¸ÀÏ ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇϸç log :: log4perl.scribe¿Í ¿Ïº®ÇÏ°Ô È£È¯µÇ´Â Perl ¸ðµâÀÔ´Ï´Ù. ¼¹öÀÇ Å¬¶óÀ̾ðÆ® Ãø ¼öÁ¤¾øÀÌ È®Àå °¡´ÉÇÏ°í È®Àå °¡´ÉÇϵµ·Ï ¼³°èµÇ¾úÀ¸¸ç ³×Æ®¿öÅ© ¶Ç´Â ƯÁ¤ ±â°èÀÇ ½ÇÆзΠÀÎÇØ °ß°íÇÕ´Ï´Ù. Scribe´Â Facebook¿¡¼ °³¹ßµÇ¾úÀ¸¸ç Open Source·Î ¸±¸®½ºµÇ¾ú½À´Ï´Ù. Synopsis Log :: Dispatch :: Scribe; $ log = log :: dispatch :: scribe-> new (name => 'scribe', min_level => 'Á¤º¸', È£½ºÆ® => 'localhost', port => 1463, default_category => 'test', Retry_Plan_A = > '¹öÆÛ', RETRY_PLAN_B => 'DIE',); $ log-> log (·¹º§ => 'ºñ»ó', ¸Þ½ÃÁö => '³ª»Û ÀÏÀÌ ÀÏ¾î³ ÀÏ'); $ log-> ·Î±× (¹üÁÖ => '½Ã½ºÅÛ', ·¹º§ => 'ºñ»ó', ¸Þ½ÃÁö => '³ª»Û ÀÏÀÌ ÀÏ¾î³ ÀÏ'); # ¶Ç´Â log :: log4perl (ÀÌ ¿¹¿¡¼ yaml ½ºÅ¸ÀÏ ±¸¼ºÀ» »ç¿ëÇÏ¿©) log4perl.rootlogger : scribe log4perl.appender.scribe : log :: dispatch :: scribe log4perl.appender.scribe.host : localhost logito log4perl.appender .scribe.port : 1465 log4perl.appender.scribe.category : ½Ã½ºÅÛ log4perl.appender.scribe.layout : log :: log4perl :: layout :: patternlayout log4perl.appender.scribe.layout.conversionPattern : " p] % m % n "log :: log4perl »ç¿ë; log :: log4perl-> init ( 'log4perlconfig.yml'); # Initialise ±¸¼º ÆÄÀÏÀ» »ç¿ëÇÏ¿© $ log = log :: log4perl-> get_logger ( 'example.usage'); $ log-> Á¤º¸ ( "..."); ·Î±× :: log4perl $ log-> ·Î±× ($ Á¤º¸, "...")¸¦ ÅëÇØ Á¤º¸ ¸Þ½ÃÁö¸¦ ±â·ÏÇϽʽÿÀ. # ´ëü ±¸¹® ¿ä±¸ »çÇ× : ¡¤ Perl.
·Î±× :: µð½ºÆÐÄ¡ :: Scribe. °ü·Ã ¼ÒÇÁÆ®¿þ¾î