java.util.logging.Logger and log4j

后端 未结 3 1386
礼貌的吻别
礼貌的吻别 2021-01-14 08:51

I am trying to compile the code from here: http://www.brackeen.com/javagamebook/#download (Chapter 6) and am having trouble. I don\'t understand how java.util.logging.

3条回答
  •  半阙折子戏
    2021-01-14 09:27

    java.util.logging.Logger does not have a warn() method (although it does have a warning() method).

    However, org.apache.log4j.Logger does indeed have a method named warn().

    Are you sure you are importing the correct classes?

提交回复
热议问题