| ·Î±× :: log4perl. LOG :: LOG4PERLÀº PERLÀÇ LOG4J ±¸ÇöÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
·Î±× :: log4perl. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Mike Schilli and Kevin Goess
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~mschilli/Log-Log4perl-1.16/lib/Log/Log4perl.pm
·Î±× :: log4perl. ű×
·Î±× :: log4perl. ¼³¸í
log :: log4perlÀº perl¿¡ ´ëÇÑ log4j ±¸ÇöÀÔ´Ï´Ù. log :: log4perlÀº perl.synopsis # °£´ÜÇÑ ¸ðµå¿¡ ´ëÇÑ log4j ±¸ÇöÀÔ´Ï´Ù. °£´ÜÇÏ°Ô ... log :: log4perl qw (: easy); log :: log4perl-> easy_init ($ ¿À·ù); µð¹ö±× "ÀÌ°ÍÀº ¾Æ¹«µ¥µµ °¡Áö ¾Ê½À´Ï´Ù"; ¿À·ù "ÀÌ°ÍÀº ±â·ÏµË´Ï´Ù"; ´õ ¸¹Àº ±â´ÉÀ»À§ÇÑ # ... ¶Ç´Â Ç¥ÁØ ¸ðµå : log :: log4perl :: init ( '/ etc / log4perl.conf'); - ¶Ç´Â # 10 Ãʸ¶´Ù ±¸¼ºÀ» ¼±ÅÃÇϽʽÿÀ. ·Î±× :: log4perl :: init_and_watch ( '/ etc / log4perl.conf', 10); - - $ logger = log :: log4perl-> get_logger ( 'house.bedrm.desk.topdrrwr'); $ logger-> debug ( 'ÀÌ°ÍÀº µð¹ö±× ¸Þ½ÃÁö'); $ logger-> info ( 'ÀÌ°ÍÀº Á¤º¸ ¸Þ½ÃÁö'); $ logger-> °æ°í ( 'etc'); $ logger-> ¿À·ù ( '..'); $ logger-> Ä¡¸íÀûÀÎ ( '..'); ##### / etc / log4perl.conf ###################### log4perl.logger.house = °æ°í, fileappndr1 log4perl.logger.house.bedroom.desk = debug, fileappndr1 log4perl.appender.fileappndr1 = log :: log4perl :: appender :: file log4perl.appender.fileappndr1.filename = desk.log log4perl.appender.fileappndr1.layout = ·Î±× :: log4perl :: layout :: simpleLayout ############################## ############# Ãß»ó ·Î±× :: log4perlÀº ÀÀ¿ë ÇÁ·Î±×·¥ ¿ä±¸ »çÇ׿¡ ´ëÇÑ °·ÂÇÑ ·Î±ë API¸¦ Á¦°øÇÕ´Ï´Ù. ¡¤ Perl.
·Î±× :: log4perl. °ü·Ã ¼ÒÇÁÆ®¿þ¾î