| log :: log4perl :: layout :: xmllayout. log :: log4perl :: layout :: xmllayoutÀº XML ·¹À̾ƿôÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
log :: log4perl :: layout :: xmllayout. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~gcarls/Log-Log4perl-Layout-XMLLayout-0.03/lib/Log/Log4perl/Layout/XMLLayout.pm
log :: log4perl :: layout :: xmllayout. ű×
log :: log4perl :: layout :: xmllayout. ¼³¸í
log :: log4perl :: layout :: xmllayoutÀº XML ·¹À̾ƿôÀÔ´Ï´Ù. log :: log4perl :: layout :: xmllayoutÀº xml layoutÀÔ´Ï´Ù .Synopsis »ç¿ë log :: log4perl :: layout :: xmlleayout; ³» $ app = log :: log4perl :: appender-> new ( "log :: log4perl :: appender :: file"); ³» $ logger = log :: log4perl-> get_logger ( "abc.def.ghi"); $ logger-> add_appender ($ ¾Û); # logationInfo ³» $ layout = log :: log4perl :: layout :: xmllayout-> new ({locationinfo => {value => 'true'}, encoding => {value => 'iso8859-1'}) ...¿¡ $ ¾Û -> ·¹À̾ƿô ($ ·¹À̾ƿô); $ logger-> debug ( "±× ¸Þ½ÃÁöÀÔ´Ï´Ù"); ##################################4Perl.appender.a1.layout = log :: log4perl :: layout :: xmllayout log4perl.appender.a1.layout.locationinfo = true log4perl.appender.a1.layout.encoding = iso8859-1 ########################## ## http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/xml/xmllayout.htmllogfiles¿¡ µû¶ó XML/Apache/log4j/xml/xmllayout.htmllogfiles´Â log4j Àü±â Åé ±×·¡ÇÈ »ç¿ëÀÚ ³»¿¡¼ º¼ ¼ö ÀÖ°í ÇÊÅ͸µ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÎÅÍÆäÀ̽º (¾Æ·¡ÀÇ ¿¹Á¦ ¼½¼Ç ÂüÁ¶). Àü±â ÅéÀº Java ±â¹Ý LOG4J ÆÐÅ°ÁöÀÇ ÀϺÎÀ̸ç http://jakarta.apache.org/the¿¡¼ ´Ù¿î·Îµå ÇÒ ¼ö ÀÖ½À´Ï´Ù. xmllayoutÀÇ Ãâ·ÂÀº log4j.dtd¿¡ Á¤ÀÇ µÈ ÀÏ·ÃÀÇ log4j : À̺¥Æ® ¿ä¼Ò·Î ±¸¼ºµË´Ï´Ù. ±×°ÍÀº ¿ÏÀüÇÑ Çü¼ºµÈ XML ÆÄÀÏÀ» Ãâ·ÂÇÏÁö ¾Ê½À´Ï´Ù. Ãâ·ÂÀº º°µµÀÇ ÆÄÀÏÀÇ ¿ÜºÎ ¿£ÅÍƼ·Î Æ÷ÇԵǵµ·Ï ¼³°èµÇ¾î ¿Ã¹Ù¸¥ XML ÆÄÀÏÀ» Çü¼ºÇϵµ·Ï ¼³°èµÇ¾ú½À´Ï´Ù. ¿¹¸¦ µé¾î, ABC°¡ XMLLAYout Ouput°¡ÀÖ´Â ÆÄÀÏÀÇ À̸§À̸é Àß ±¸¼ºµÈ XML ÆÄÀÏÀÌ ´ÙÀ½°ú °°½À´Ï´Ù. ? XML ¹öÀü = "1.0"? > ÀÌ Á¢±Ù¹ýÀº XmlLayoutÀÇ µ¶¸³¼º°ú ÀÓº£µðµå ÀÎ AppenderÀÇ µ¶¸³¼ºÀ» Àû¿ëÇÕ´Ï´Ù. ¹öÀü ¼Ó¼ºÀº ±¸¼º ¿ä¼Ò°¡ XmlLayout¿¡¼ »ý¼º µÈ ±¸¼º ¿ä¼Ò¸¦ ¿Ã¹Ù¸£°Ô ¿Ã¹Ù¸£°Ô »ý¼ºÇÏ´Â µ¥ µµ¿òÀ̵˴ϴÙ. ÀÌ ¼Ó¼ºÀÇ °ªÀº log4j 1.2 (ÃÖÁ¾ ¸±¸®Áî) ÀÌÀü¿¡ log4j ¹öÀü¿¡¼ »ý¼º µÈ Ãâ·Â¿¡ ´ëÇØ "1.1"À̾î¾ßÇÕ´Ï´Ù. relase 1.2 ÀÌ»ó. ¡¤ perlinstallation :ÀÌ ¸ðµâÀ» ¼³Ä¡ÇÏ·Á¸é ´ÙÀ½À» ¼öÇàÇÕ´Ï´Ù. Perl makefile. PLÀ» »ç¿ëÇϸé Å×½ºÆ®¸¦ ¼³Ä¡ÇϽʽÿÀ
log :: log4perl :: layout :: xmllayout. °ü·Ã ¼ÒÇÁÆ®¿þ¾î