日志框架实现实时修改,实时生效,具体框架思路(6)

日志框架实现实时修改,实时生效,,具体框架思路(6)

分类:日志性能

代码接第(5)章:

/*** 读取资源信息 <功能详细描述>** @param filePath* 资源路径(包含文件名称)* @return Properties [返回类型说明]* @see [类、类#方法、类#成员]*/private Properties readProperties(String filePath) {Properties props = new Properties();InputStream in = null;try {in = new BufferedInputStream(new FileInputStream(filePath));props.load(in);} catch (FileNotFoundException e) {LOG.error(e.getMessage() + "The config file {0} is not exit");} catch (IOException e) {LOG.error(e.getMessage() + "Read config file {0} error");} finally {if (null != in) {try {in.close();} catch (IOException e) {LOG.error(e.getMessage()+ "Close inputStream of file {0} error ");}}}return props;}}

版权声明:本文为博主原创文章,未经博主允许不得转载。

上一篇日志框架实现实时修改,实时生效,具体框架思路(5)下一篇日志框架实现实时修改,实时生效,具体框架思路(7)

顶0踩0

是我一生的快乐;失去你,是我一生的遗憾;没有你,无法感受心灵的震撼。

日志框架实现实时修改,实时生效,具体框架思路(6)

相关文章:

你感兴趣的文章:

标签云: