日志级别动态调整
/** * * 对外提供动态配置日志级别</br> * 以及日志文件备份策略(实现类) * * @author * @version [版本号, 2012-1-5] * @see 接口:updateLevel(String level)、</br> * updateFileMaxBackupSize(int maxBackupSize)、</br> * updateFileRollingMode(String fileRollingMode) * @since [产品/模块版本] *///@Service("logConfigImpl")public class LogConfigImpl implements ILogConfig{ public boolean updateLevel(String level) { return LogLevelChanger.getInstance().changeLogLevel(level); }}/** * * 对外提供动态配置日志级别</br> * 以及日志文件备份策略(接口) * * @author tianxiang.li * @version [版本号, 2012-1-5] * @see 接口:updateLevel(String level)、</br> * updateFileMaxBackupSize(int maxBackupSize)、</br> * updateFileRollingMode(String fileRollingMode) * @since [产品/模块版本] */public interface ILogConfig{ /** * 动态更改日志级别接口(缓存中更改) * @author * @param level 日志级别:ERROR(错误)、INFO(信息)、DEBUG(调试)、WARNING(警告) * @return 是否更新成功 * @throws CCBCommonException 更新失败抛出异常(自定义异常) * @see [类、类#方法、类#成员] */ public boolean updateLevel(String level); }