·Î±× :: Á¤º¸

·Î±× Ãâ·ÂÀ»À§ÇÑ ´ÜÀÏ ÀÎÅÍÆäÀ̽º
Áö±Ý ´Ù¿î·Îµå

·Î±× :: Á¤º¸ ¼øÀ§ ¹× ¿ä¾à

±¤°í

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

·Î±× :: Á¤º¸ ű×


·Î±× :: Á¤º¸ ¼³¸í

·Î±× Ãâ·ÂÀ»À§ÇÑ ´ÜÀÏ ÀÎÅÍÆäÀ̽º log :: info´Â ¸ðµç ·Î±ë ÀÛ¾÷À»À§ÇÑ ´ÜÀÏ ÀÎÅÍÆäÀ̽º·Î Àǵµ µÈ Perl ¸ðµâÀÔ´Ï´Ù. ·Î±× :: InfoÀÇ °¢ ÀνºÅϽº´Â ƯÁ¤ À¯ÇüÀÇ ·Î±×¿¡ ´ëÇÑ Ãâ·ÂÀ̵Ǿî¾ßÇÕ´Ï´Ù. ÀϺΠ±âº»°ªÀÌ Á¦°øµÇ¸ç »ç¿ëÀÚ ÁöÁ¤ÀÌ »ý¼º µÉ ¼ö ÀÖ½À´Ï´Ù. log :: info ³»º¸³»±â ±â´É ·Î±× ¹× logf default.synopsis log :: info qw (±âº»°ª : log_levels : default_channels); ·Î±× (chan_info, log_err, "Ä¡¸íÀûÀÎ ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù"); logf (chan_info, log_info, "ÆÄÀϷεå : % s", $ filename); log :: info :: add_sink (chan_stats, 'stats-file', 'file', log_info, {fn => "$ env {home} / stats", maxsize => 10 * 1024 ** 2, # 1m,} ); log :: info :: add_sink (chan_debug, 'stderr', 'fh', log_info, {fh => * stderr {io}}) if $ opt_debug; log :: info :: set_sink_out_level (chan_info, sink_stderr, log_info); ·Î±× :: info :: add_channel ( 'mylog', $ fh); log :: info :: set_channel_out_level ( 'mylog', log_warning); log :: info :: add_sink ( 'mylog', 'mysink', 'file', log_err, {fn => / tmp / mylog '}); log ( 'mylog', log_info, '³ª´Â ¿©±â¿¡¿Ô´Ù ...'); log :: info :: delete_sink ( 'mylog', 'outf'); ·Î±× :: info :: delete_channel ( 'mylog'); ¿ä±¸ »çÇ× : ¡¤ Perl.


·Î±× :: Á¤º¸ °ü·Ã ¼ÒÇÁÆ®¿þ¾î