Where does java.util.logging.Logger store their log

前端 未结 3 1966
悲哀的现实
悲哀的现实 2020-12-13 08:48

This might be a stupid question but I am a bit lost with java Logger

private static Logger logger = Logger.getLogger(\"order.web.OrderManager\");
logger.inf         


        
3条回答
  •  一整个雨季
    2020-12-13 09:20

    Where it goes is dependent on your configuration. There are details about this in the API docs. The log level is the exact reverse of what you said. If you have a configuration of FINE, everything that is FINE, WARNING, SEVERE will show up, but if you have it set to SEVERE then only those will come up.

    In general you should use FINE while debugging and switch to SEVERE when it is in a production environment.

提交回复
热议问题