How can I disable the default console handler, while using the java logging API?

前端 未结 5 2035
天涯浪人
天涯浪人 2020-11-27 12:07

Hi I am trying to implement the java logging in my application. I want to use two handlers. A file handler and my own console handler. Both of my handlers work fine. My logg

5条回答
  •  失恋的感觉
    2020-11-27 12:36

    This is strange but Logger.getLogger("global") does not work in my setup (as well as Logger.getLogger(Logger.GLOBAL_LOGGER_NAME)).

    However Logger.getLogger("") does the job well.

    Hope this info also helps somebody...

提交回复
热议问题