diff options
Diffstat (limited to 'integration/src/main/resources')
-rw-r--r-- | integration/src/main/resources/logback.xml | 102 | ||||
-rw-r--r-- | integration/src/main/resources/portalConfig/msb_register.xml | 115 |
2 files changed, 217 insertions, 0 deletions
diff --git a/integration/src/main/resources/logback.xml b/integration/src/main/resources/logback.xml new file mode 100644 index 00000000..bf07d3b2 --- /dev/null +++ b/integration/src/main/resources/logback.xml @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<configuration debug="false" scan="true" scanPeriod="30 seconds"> + <property name="projectName" value="openoui"/> + <property name="logDir" value="../webapps/openoui/openoui_log"/> + <property name="maxHistory" value="30"/> + <timestamp key="bySecond" datePattern="yyyyMMdd'T'HHmmss"/> + + <appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender"> + <encoder> + <pattern> + %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n + </pattern> + </encoder> + </appender> + + <appender name="errorAppender" class="ch.qos.logback.core.rolling.RollingFileAppender"> + <filter class="ch.qos.logback.classic.filter.LevelFilter"> + <level>ERROR</level> + <onMatch>ACCEPT</onMatch> + <onMismatch>DENY</onMismatch> + </filter> + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> + <fileNamePattern>${logDir}/error/error.%d{yyyy-MM}.log</fileNamePattern> + <maxHistory>${maxHistory}</maxHistory> + </rollingPolicy> + <encoder> + <pattern> + %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n + </pattern> + </encoder> + </appender> + + <appender name="warnAppender" class="ch.qos.logback.core.rolling.RollingFileAppender"> + <filter class="ch.qos.logback.classic.filter.LevelFilter"> + <level>WARN</level> + <onMatch>ACCEPT</onMatch> + <onMismatch>DENY</onMismatch> + </filter> + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> + <fileNamePattern>${logDir}/warn/warn.%d{yyyy-MM}.log</fileNamePattern> + <maxHistory>${maxHistory}</maxHistory> + </rollingPolicy> + <encoder> + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern> + </encoder> + </appender> + + <appender name="infoAppender" class="ch.qos.logback.core.rolling.RollingFileAppender"> + <filter class="ch.qos.logback.classic.filter.LevelFilter"> + <level>INFO</level> + <onMatch>ACCEPT</onMatch> + <onMismatch>DENY</onMismatch> + </filter> + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> + <fileNamePattern>${logDir}/info/info.%d{yyyy-MM}.log</fileNamePattern> + <maxHistory>${maxHistory}</maxHistory> + </rollingPolicy> + <encoder> + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern> + </encoder> + </appender> + + <appender name="debugAppender" class="ch.qos.logback.core.rolling.RollingFileAppender"> + <filter class="ch.qos.logback.classic.filter.LevelFilter"> + <level>DEBUG</level> + <onMatch>ACCEPT</onMatch> + <onMismatch>DENY</onMismatch> + </filter> + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> + <fileNamePattern>${logDir}/debug/debug.%d{yyyy-MM}.log</fileNamePattern> + <maxHistory>${maxHistory}</maxHistory> + </rollingPolicy> + <encoder> + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern> + </encoder> + </appender> + + <appender name="traceAppender" class="ch.qos.logback.core.rolling.RollingFileAppender"> + <filter class="ch.qos.logback.classic.filter.LevelFilter"> + <level>TRACE</level> + <onMatch>ACCEPT</onMatch> + <onMismatch>DENY</onMismatch> + </filter> + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> + <fileNamePattern>${logDir}/trace/trace.%d{yyyy-MM}.log</fileNamePattern> + <maxHistory>${maxHistory}</maxHistory> + </rollingPolicy> + <encoder> + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern> + </encoder> + </appender> + + <root> + <level value="info"/> + <appender-ref ref="consoleAppender"/> + <appender-ref ref="errorAppender"/> + <appender-ref ref="warnAppender"/> + <appender-ref ref="infoAppender"/> + <appender-ref ref="debugAppender"/> + <appender-ref ref="traceAppender"/> + </root> +</configuration> diff --git a/integration/src/main/resources/portalConfig/msb_register.xml b/integration/src/main/resources/portalConfig/msb_register.xml new file mode 100644 index 00000000..6a56f89a --- /dev/null +++ b/integration/src/main/resources/portalConfig/msb_register.xml @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2016-2017, CMCC Technologies Co., Ltd. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<msbRegister> + <msbHost> + <hostIp>http://192.168.233.226</hostIp> + <hostPort>80</hostPort> + <msbApiRootDomain>/openoapi/microservices/v1/services</msbApiRootDomain> + </msbHost> + <registerList> + <registerInfo> + <ip>127.0.0.1</ip> + <port>8300</port> + <url>/openoui/login</url> + <serviceName>login</serviceName> + <protocol>UI</protocol> + <visualRange>1</visualRange> + <lb_policy>hash</lb_policy> + <ttl>0</ttl> + </registerInfo> + <registerInfo> + <ip>127.0.0.1</ip> + <port>8300</port> + <url>/openoui/catalog</url> + <serviceName>catalog</serviceName> + <protocol>UI</protocol> + <visualRange>1</visualRange> + <lb_policy>hash</lb_policy> + <ttl>0</ttl> + </registerInfo> + <registerInfo> + <ip>127.0.0.1</ip> + <port>8300</port> + <url>/openoui/extsys</url> + <serviceName>extsys</serviceName> + <protocol>UI</protocol> + <visualRange>1</visualRange> + <lb_policy>hash</lb_policy> + <ttl>0</ttl> + </registerInfo> + <registerInfo> + <ip>127.0.0.1</ip> + <port>8300</port> + <url>/openoui/performance</url> + <serviceName>performance</serviceName> + <protocol>UI</protocol> + <visualRange>1</visualRange> + <lb_policy>hash</lb_policy> + <ttl>0</ttl> + </registerInfo> + <registerInfo> + <ip>127.0.0.1</ip> + <port>8300</port> + <url>/openoui/monitor</url> + <serviceName>monitor</serviceName> + <protocol>UI</protocol> + <visualRange>1</visualRange> + <lb_policy>hash</lb_policy> + <ttl>0</ttl> + </registerInfo> + <registerInfo> + <ip>127.0.0.1</ip> + <port>8300</port> + <url>/openoui/lifecyclemgr</url> + <serviceName>lifecyclemgr</serviceName> + <protocol>UI</protocol> + <visualRange>1</visualRange> + <lb_policy>hash</lb_policy> + <ttl>0</ttl> + </registerInfo> + <registerInfo> + <ip>127.0.0.1</ip> + <port>8300</port> + <url>/openoui/resmgr-nfv</url> + <serviceName>resmgr-nfv</serviceName> + <protocol>UI</protocol> + <visualRange>1</visualRange> + <lb_policy>hash</lb_policy> + <ttl>0</ttl> + </registerInfo> + <registerInfo> + <ip>127.0.0.1</ip> + <port>8300</port> + <url>/openoui/resmgr-sdn</url> + <serviceName>resmgr-sdn</serviceName> + <protocol>UI</protocol> + <visualRange>1</visualRange> + <lb_policy>hash</lb_policy> + <ttl>0</ttl> + </registerInfo> + <registerInfo> + <ip>127.0.0.1</ip> + <port>8300</port> + <url>/openoui/user</url> + <serviceName>user</serviceName> + <protocol>UI</protocol> + <visualRange>1</visualRange> + <lb_policy>hash</lb_policy> + <ttl>0</ttl> + </registerInfo> + </registerList> +</msbRegister> |