Djalog.Django ÀÀ¿ë ÇÁ·Î±×·¥ÀÇ °£´ÜÇÑ ·Î±ë ¸ðµâ | |
Áö±Ý ´Ù¿î·Îµå |
Djalog. ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- MIT/X Consortium Lic...
- °¡°Ý:
- FREE
- °Ô½ÃÀÚ À̸§:
- Lukasz Balcerzak
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://code.google.com/u/LukaszBalcerzak/
Djalog. ű×
Djalog. ¼³¸í
Django ÀÀ¿ë ÇÁ·Î±×·¥À»À§ÇÑ °£´ÜÇÑ ·Î±ë ¸ðµâ Djalog´Â Áï½Ã »ç¿ëÇÒ ¼öÀÖ´Â ·Î°Å¸¦ Á¦°øÇÕ´Ï´Ù. ¸Å¿ì °£´ÜÇÑ ·Î±ë ·¡ÆÛÀÔ´Ï´Ù. ´õ ¸¹Àº ¹º°¡¸¦ ã°í ÀÖ½À´Ï´Ù. ¶ÇÇÑ ÇØ´ç ¸í·ÉÀ» ½ÇÇàÇÏ¿© °¡Àå ÃÖ±Ù ¹öÀüÀ» »ç¿ëÇϽʽÿÀ. hg clone https://djalog.googlecode.com/hg/ djalogcd djalogpython setup.py installnote -ÀÌ project.djalog¿¡ ´ëÇÑ ¹öÀü Á¦¾î ½Ã½ºÅÛÀ¸·Î »ç¿ëµÇ´Â °Íó·³ MercurialÀÌ ÇÊ¿äÇÕ´Ï´Ù. Python 2.3.usage¿¡¼ »ç¿ëÇÒ ¼öÀÖ´Â ·Î±ë ¸ðµâ : Djalog ÀÛµ¿ ¹æ½ÄÀ» ½Å¼ÓÇÏ°Ô È®ÀÎÇÏ·Á¸é ÁÁ¾ÆÇÏ´Â ÆÄÀ̽㠽©·Î À̵¿ÇÏ¿© ´ÙÀ½À» ÀÔ·ÂÇϽʽÿÀ. import djalogimport logginglogging.debug ( "ÀϺΠµð¹ö±× Á¤º¸") logging.info ( "·Î±× ÀϺΠÁ¤º¸. ") logging.warn ("·Î±× ¸î °¡Áö °æ°í ") logging.error ("ÀϺΠ¿À·ù ") djalog °¡Á® ¿À±â configureConfigure (log_use_colors = true, log_sql = true, log_level = 5) logging.debug ( "ÀϺΠµð¹ö±× Á¤º¸¸¦ ±â·ÏÇϽʽÿÀ.") logging.info ( "ÀϺΠÁ¤º¸¸¦ ±â·ÏÇϽʽÿÀ. logging.warn ( "·Î±×ÀÎÇϽʽÿÀ.") logging.error ( "ÀϺΠ¿À·ù") logging.critical ( "¸î °¡Áö Áß¿äÇÑ Á¤º¸¸¦ ±â·ÏÇϽʽÿÀ.") # log sql querylogging.sql ( "»ç¿ëÀÚ À̸§À» ¼±ÅÃÇϽʽÿÀ) = 'admin' ")ÀÌ ¿¹Á¦¿¡¼ Djalog.configure ¸Þ¼Òµå·Î Djalog À¯Æ¿¸®Æ¼ÀÇ ¼³Á¤À» º¯°æÇÒ ¼ö ÀÖÀ½À» ¾Ë ¼ö ÀÖ½À´Ï´Ù. »ç¿ë °¡´ÉÇÑ º¯¼ö ¼³Á¤ÀÇ Àüü ¸ñ·ÏÀº DjalogSettings¸¦ ÂüÁ¶ÇϽʽÿÀ. Workdjalog´Â Django ·Î±ëÀ»À§ÇÑ °¡Àå °£´ÜÇÑ Á¢±Ù¹ýÀÔ´Ï´Ù. ½ÇÁ¦·Î Django ÄÁÅؽºÆ®¿¡¼ ½±°Ô »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù (»ç¿ë ¼½¼Ç¿¡¼ ¿¹Á¦ ÂüÁ¶). Django¿Í ÇÔ²² »ç¿ëÇϱâ À§ÇØ Djalogdjango.warningÀ» ÂüÁ¶ÇϽʽÿÀ : djalog´Â °£´ÜÇÏÁö¸¸ ¾î¶² °æ¿ì¿¡´Â Ç×»ó ¹Ù¶÷Á÷ÇÏÁö ¾ÊÀº ·Î±ë ¸ðµâÀÇ ³»ºÎ ¸ÞÄ¿´ÏÁòÀ» »ç¿ëÇÕ´Ï´Ù. ¿¹¸¦ µé¾î, djalog.loggers.djaloglogger¸¦ »ç¿ëÇÏ¿© logging.root logger¸¦ ÀüȯÇϰųª log_sqlÀÌ true·Î ¼³Á¤µÈ °æ¿ì (djalogsql ÂüÁ¶) ·Î±ë ¸ðµâ¿¡ °£´ÜÇÑ SQL ¸Þ¼Òµå°¡ Ãß°¡µË´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Àå°í ¡¤ ÆÄÀ̽ã
Djalog. °ü·Ã ¼ÒÇÁÆ®¿þ¾î