JDK: how to enable PlatformLogger programmatically

前端 未结 2 1052
没有蜡笔的小新
没有蜡笔的小新 2021-02-14 09:34

I need to enable logging for some JDK7 internal class programmatically.

This is what I do in the initialization of my application:

httpLogger = Logger.ge         


        
2条回答
  •  我在风中等你
    2021-02-14 10:19

    You have to read it first what is saying.

     the PlatformLogger API can be used if the logging module does not exist
    

    Well the if you want to use that API you than use following import statement.

    import sun.util.logging.PlatformLogger;
    

    Above is the complete reference to your destination.

    For Further Reference Visit BUG Tracking of Java

提交回复
热议问题