Logback:加载groovy配置

时间:2017-06-30 16:27:27

标签: java logback logback-groovy

如何以编程方式加载自定义命名的groovy config(''' Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Input: [1,2,3,4] Output: 24 Note: The length of the given array will be in range [3,104] and all elements are in the range [-1000, 1000]. Multiplication of any three numbers in the input won't exceed the range of 32-bit signed integer. ''' class Solution(object): def maximumProduct(self, nums): nums.sort() if nums[0]<0 and nums[1]<0 and abs(nums[1])>=nums[-2]: res=nums[0]*nums[1]*nums[-1] else: res=nums[-1]*nums[-2]*nums[-3] return res )config?
当我尝试:

logback-config.groovy

得到了expt:

  

ch.qos.logback.core.joran.spi.JoranException:解析XML时出现问题   文献。请参阅先前报告的错误。

出了什么问题?

0 个答案:

没有答案