java.util.logging.Logger and log4j

后端 未结 3 1350
礼貌的吻别
礼貌的吻别 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:10

    Could you please format your code ? Ti would be much more readable ...

    You are trying to call the error(String, String) method on an instance of java.util.logger.Logger. There is no such method. You should use Logger.log(Level.SEVERE, "mesage") instead, or use an instance of a log4J Logger. Check the import section of your source file ...

提交回复
热议问题