|
¸»¾¸ÇϽô °ÍÀÌ.
Level º°·Î Â÷µîÀ» µÎ¾î ·Î±×¸¦ ³ª±â°Ô ÇϽô °ÇÁö?
debug¿Í error¸¦ ±¸ºÐÇØ¼ ·Î±×¸¦ ³²±â±â ÇÏ´Â ±â¹ýÀÎÁö?
¾Æ´Ï¸é ·Î±×¸¦ ÀúÀåÇÏ´Â ±â¹ýÀÎÁö Á¤È®È÷ ³ª¿ÍÀÖÁö ¾Ê¾Æ. ´äº¯À» µå¸®±â°¡ °ï¶õÇϳ׿ä.
ÀüÀÚ´Â log4net, log4j¿¡ ÀÌ¹Ì ±â´ÉÀÌ ÀÖ½À´Ï´Ù.
ÈÄÀÚ ¿ª½Ã ÀÌ¹Ì log4net, log4j¿¡ Áö¿øÇÕ´Ï´Ù.
ÀúÀåÇÏ´Â ±â¹ýÀ» Á¤¸®ÇÑ ÀÚ·á´Â ´ÙÀ½°ú °°½À´Ï´Ù .
http://arload.wordpress.com/2008/06/02/log-data-management/

¼ÒÇÁÆ®¿þ¾îÀÇ ÇöÀç »óŸ¦ ¸ð´ÏÅ͸µÇϰųª, ¿À·ù½Ã ¿øÀÎÀ» ÆÄ¾ÇÇϱâ À§ÇØ Log¸¦ ³²±â½Ç °Ì´Ï´Ù. ¸¹Àº ºÐÀÌ Log4J , Log4NETÀ» ÀÌ¿ëÇϽʴϴÙ.
ÇÏ·ç¿¡ ½×ÀÌ´Â ¾öû³ ·Î±×¾ç¶§¹®¿¡, °ñÄ¡ ¾ÆÇÁ½Å °æÇèÀÌ ÀÖ´Ù¸é ÀÌ ³í¹®À» ²À ÀÐ¾î º¸½Ã±æ ¹Ù¶ø´Ï´Ù.
ÀÌ ÆÐÅÏÀº Logging µ¥ÀÌÅÍÀÇ Overflow¸¦ ¸·±â À§ÇØ ¿ì¸®°¡ ¾î¶»°Ô ÇØ¾ßµÇ´ÂÁö Á¢±Ù ¹ýÀ» ¼³¸íÇϰí, Log4XXX(.NET, Java ¡¦) ÀÇ ³»ºÎ±â´É°ú ºñ±³ÇÏ¿© ¼³¸íÀ» ÇÕ´Ï´Ù.
Linear Bound Log
Assign the log with a maximal size. Once this size is reached, recycle the log space ? the next message will be written to the beginning of the same log, and all previous events are erased.
·Î±× ÃÖ´ë »çÀÌÁ ÇÒ´çÇÏ´Â ¹æ¹ýÀ¸·Î, ÃÖ´ë »çÀÌÁî¿¡ µµ´ÞÇÏ°Ô µÇ¸é, ·Î±× ÆÄÀÏÀ» Àç»ç¿ëÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù. ´ÙÀ½ ¸Þ¼¼Áö´Â µ¿ÀÏÇÑ ·Î±×ÆÄÀÏ ½ÃÀۺκп¡ ¾²¿©Áý´Ï´Ù.
ÇÏÁö¸¸ ±×Àü¿¡ ÀÖ¾ú´ø ¸ðµç events¿¡ ´ëÇÑ Á¤º¸ (Áï ·Î±× µ¥ÀÌÅÍ)µéÀº ´Ù Áö¿öÁö°Ô µË´Ï´Ù.
Nx Linear Bound Log
Estimate the size you can allocate for log messages, divide it among N Linear Bound Logs. Start writing log messages into the first log. Once the log reaches the predetermined size, create a new log. Once you have reached the end of the size allocated to the N-th log, reuse the first log.
À§ Linear Bound LogÀÇ ´ÜÁ¡À» ±Øº¹Çϱâ À§ÇØ, Linerar Bound Log¸¦ ¿©·¯°³¸¦ ¸¸µå´Â ¹æ¹ýÀÔ´Ï´Ù. ÇϳªÀÇ ·Î±×°¡ ¸Æ½Ã¾ö »çÀÌÁî¿¡ µµ´ÞÇÏ°Ô µÇ¸é, »õ·Î¿î ·Î±×¸¦ »ý¼ºÇÏ°Ô µÇ°í N¹ø ¸¸Å »ý¼ºÇÏ°Ô µÇ¸é ´Ù½Ã óÀ½ Log ºÎÅÍ WirteÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù.
Cyclic Buffer Log
Estimate the size you can allocate for log messages. Once the log reaches the predetermined size, overwrite the oldest message with the newest, using the allocated log storage size as a cyclic buffer or a finite FIFO.
°¡Àå ÀÌ»óÀûÀÎ ¹æ¹ýÀ¸·Î ¸Æ½Ã¾ö »çÀÌÁî±îÁö µµ´ÞÇÏ°Ô µÇ¸é, ·Î±× ÆÄÀÏÀ» ´Ù Áö¿ìÁö ¾Ê°í óÀ½ºÎÅÍ µ¤¾î ¾²´Â (OverWritten) ÇüÅÂÀÇ ·Î±×ÀÔ´Ï´Ù. Log4XXX ¿¡¼´Â RollingFileAppender¸¦ ÀÌ¿ëÇØ¼ ¸Æ½Ã¾ö »çÀÌÁ Á¤ÇÒ¼ö ÀÖÀ» »Ó¸¸ ¾Æ´Ï¶ó, Á»´õ Çâ»óµÈ Feature·Î Daily Rolling À» Á¦°øÇÕ´Ï´Ù. ¾à°£ÀÇ ¼³Á¤À¸·Î Monthlyµµ °¡´ÉÇÕ´Ï´Ù. ^^ ¸¹Àº ºÐµé¿¡°Ô ÀÌ ¹æ¹ýÀ» ÃßõÇÕ´Ï´Ù.
Database Log
Log messages into a database. By logging to a database instead of a stream, you also gain random access to single events, as well as easy access to event statistic
·Î±× ¸Þ¼¼Áö¸¦ ÆÄÀÏ ´ë½Å¿¡ Database¿¡ ³²±â´Â ¹æ¹ýÀÔ´Ï´Ù. °¡Àå ¼±È£µÇ´Â ¹æ½ÄÀ̸ç, ÃßÈÄ Åë°è³ª OLAP°ú °°Àº µ¥ÀÌÅ͸¦ ÃßÃâÇϱ⠿ëÀÌÇÑ ¹æ½ÄÀÔ´Ï´Ù.
ÇÏÁö¸¸ ¿À·¡µÈ µ¥ÀÌÅ͵éÀ» Áö¿ì´Â °ÍÀÌ ¹«Á¶°Ç ÁÁÀº ÀÏÀº ¾Æ´Ò°Ì´Ï´Ù. ÀÌÁß¿¡ °¡Ä¡ÀÖ´Â µ¥ÀÌÅ͵éÀº µû·Î »Ì¾Æ³»¾ßÁÒ ^^.
À§ 4°¡Áö Á¤Ã¥°ú ÇÔ²² ¸Â¹°·Á °°ÀÌ »ç¿ëÇÒ¼ö ÀÖ´Â Purging (ºÒ¼ø¹°À» Á¦°ÅÇÏ´Â) ¹æ¹ýÀÌ Á¸ÀçÇÕ´Ï´Ù.
Peoridic Log shrink
Provide the logging system with a mechanism to execute a periodic shrink of the logs by deleting events or logs.
Use a scheduling mechanism to trigger code to go over the logs at pre-determined schedule and delete events from the logs, delete the logs or move events and logs to secondary storage.
°¡Àå ±âº»ÀûÀÎ ¹æ¹ýÀº ¹Ì¸® Á¤ÀÇµÈ ½ºÄÉÁÙ·¯¸¦ ÀÌ¿ëÇÏ¿© ·Î±×µéÀ» Áö¿ì´Â °ÍÀÔ´Ï´Ù. ¹°·Ð Áö¿ì±â Àü¿¡ ·Î±×¸¦ ´Ù¸¥ ¸Åü¿¡ ¿Å±â´Â ¹æ¹ýµµ ÀÖÀ»°Ì´Ï´Ù.
Log Digest
When the log management policy is reusing a log, have it create a digest of its contents, before they are lost.
The digest can range from a statistical summary of the events to keeping a few selected events (such as the most severe events) all the way to compressing the entire log.
¶Ç ´Ù¸¥ ¹æ½ÄÀ¸·Î DigestÇÏ´Â ¹æ¹ýÀÌ ÀÖÀ» °Ì´Ï´Ù. Log µ¥ÀÌÅ͵éÀ» ¿ä¾à Á¤¸®ÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù. ¾î´À ½ÃÁ¡¿¡ ¾î¶² ¼ºñ½º¿¡ ¸¹Àº Æ®·¡ÇÈÀÌ ¹ß»ýÇß´Ù. ¹¹ ÀÌ·±½ÄÀ¸·Î ¸»ÀÌÁÒ ^^
±âÁ¸ÀÇ ÆÄÀϵéÀ» ºÐ¼®ÇÑÈÄ Æ¯Á¤ À̺¥Æ® (Áï Á¤»óÀûÀÌÁö ¾ÊÀº »óȲ¿¡¼ ¹ß»ýÇÑ À̺¥Æ® ÄÚµå)¸¦ ºÐ¼®ÇÑ ÈÄ ±× µ¥ÀÌÅ͵éÀ» º°µµ·Î »Ì¾Æ³»´Â ¹æ¹ýµµ ÀÖÀ» °ÍÀÔ´Ù.
ÀÌ ±ÛÀÇ Ãâó´Â PLOP 05³â Conference¿¡ ¹ßÇ¥µÈ Log Data Management Pattern ÀÔ´Ï´Ù. °£·«È÷ °³¿ä¸¦ Àâ¾Æµå·È°í, Å« ±ÛÀÚ¿Í ±×¸², ÀÛÀº ÆäÀÌÁö¼ö·Î ±¸¼ºµÈ Paper ÀÌ´Ï Àо½Ã±æ ±ÇÇØµå¸³´Ï´Ù. |