#翻訳 https://www.scalyr.com/blog/the-10-commandments-of-logging/ CC BY 4.0 @Brice Figureau 1.èªåã§ãã°ã®æ¸ãåºããããªã printfãã¤ãã£ããããã°ã¨ã³ããªãèªåã§ãã¡ã¤ã«ã«æ¸ãåºãããããã°ãã¼ãã·ã§ã³ãèªåã§ãã£ãããã¦ã¯ãããªããéç¨æ å½è ã«ãé¡ããã¦ãæ¨æºã©ã¤ãã©ãªãã·ã¹ãã APIã³ã¼ã«ã使ãããã«ããããããããã°ãå®è¡ä¸ã®ã¢ããªã±ã¼ã·ã§ã³ãä»ã®ã·ã¹ãã ã³ã³ãã¼ãã³ãã¨é©åã«é£æºãã¦ãç¹å¥ãªã·ã¹ãã è¨å®ãªãã«é©åãªå ´æã¾ãã¯ãããã¯ã¼ã¯ãµã¼ãã¹ã«ãã°ãè¨é²ã§ããããã«ãªãã ãã®ã³ã°ã©ã¤ãã©ãªã使ããããã°ãç¹ã«Javaã®ä¸çã«ã¯Log4j, JCL, slf4j, logbackãªã©å¤ãã®ãã®ãåå¨ãããç§ã¯slf4jã¨logbackãçµã¿åããã¦ä½¿ãã®ã好ãã ãã¨ã¦ããã¯ãã«ã§ãè¨
package sample.junit5; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.DisplayName; class JUnit5Test { @Test void fail() { Assertions.assertEquals(10, 8); } static class StaticClass { @Test void fail() { Assertions.assertEquals(10, 8); } } static class StaticTest { @Test void fail() { Assertions.assertEquals(10, 8); } } class InnerTest { @Te
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}