import java.io.UnsupportedEncodingException; import java.util.logging.Logger; public class Main { public static void main(String[] args) { Logger logger = Logger.getLogger(Main.class.getName()); logger.info("Start process..."); try { "".getBytes("invalidCharsetName"); } catch (UnsupportedEncodingException e) { logger.severe(e.toString()); } logger.info("Process end."); } }
Sign in to make a reply
韦雪松