<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><div>Loading the file logback.groovy,have a error,follow: </div><div>-ERROR in ch.qos.logback.classic.LoggerContext[default] - Groovy classes are not available on the class path. ABORTING INITIALIZATION.</div><div>I don't <span class="op_dict3_font24 op_dict3_marginRight">solve </span>the problem ,can you tell me how to <span class="op_dict3_font24 op_dict3_marginRight">solve </span>the problem £¬thanks.</div></div><div><br></div><div>my logback.groovy:</div><div><br></div><div>import ch.qos.logback.classic.encoder.PatternLayoutEncoder<br>import ch.qos.logback.core.ConsoleAppender<br>import ch.qos.logback.core.rolling.RollingFileAppender<br>import ch.qos.logback.core.rolling.TimeBasedRollingPolicy</div><div>import static ch.qos.logback.classic.Level.DEBUG<br>import static ch.qos.logback.classic.Level.INFO</div><div>scan("60 seconds")<br>def LOG_HOME = "e:\\aqps-log"<br>def APP_NAME = "aqps"<br>def GLOBAL-LOG = "globallog"<br>def moudle1 = "m1"<br>def moudle2 = "m2"<br>def moudle3 = "m3"<br>context.name = "${APP_NAME}"<br>appender("CONSOLE", ConsoleAppender) {<br>  encoder(PatternLayoutEncoder) {<br>    pattern = "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread]%-5level%logger{80}[%L] - %msg%n"<br>  }<br>}<br>appender("g1", RollingFileAppender) {<br>  rollingPolicy(TimeBasedRollingPolicy) {<br>    fileNamePattern = "${LOG_HOME}/${APP_NAME}-${GLOBAL-LOG}-%d{yyyy-MM-dd}.log"<br>    maxHistory = 30<br>  }<br>  encoder(PatternLayoutEncoder) {<br>    pattern = "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{80} - %msg%n"<br>  }<br>}<br>appender("name1", RollingFileAppender) {<br>  rollingPolicy(TimeBasedRollingPolicy) {<br>    fileNamePattern = "${LOG_HOME}/${APP_NAME}-%d{yyyy-MM-dd}.log"<br>    maxHistory = 30<br>  }<br>  encoder(PatternLayoutEncoder) {<br>    pattern = "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{80} - %msg%n"<br>  }<br>}<br>logger("com.nielesnccdata.test", INFO, ["name1"], false)<br>root(DEBUG, ["CONSOLE", "g1"])<br></div><div id="isForwardContent"><div style="color: rgb(0, 0, 0); line-height: 1.7; font-family: Arial; font-size: 14px;"><div><br></div><div>I don't <span class="op_dict3_font24 op_dict3_marginRight">solve </span>the problem ,can you tell me how to <span class="op_dict3_font24 op_dict3_marginRight">solve </span>the problem £¬thanks.</div></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>