aboutsummaryrefslogtreecommitdiffstats
path: root/prh-app-server/src/main/resources/logback-spring.xml
blob: af4ab18924ea27831f7e61ae7bd0f9781d28d006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <include resource="org/springframework/boot/logging/logback/defaults.xml"/>
  <property name="LOG_FILE"
    value="${LOG_FILE:-${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}/}spring.log}"/>

  <springProfile name="dev">
    <include resource="org/springframework/boot/logging/logback/console-appender.xml"/>
    <appender name="ROLLING-FILE"
      class="ch.qos.logback.core.rolling.RollingFileAppender">
      <encoder>
        <pattern>${FILE_LOG_PATTERN}</pattern>
      </encoder>
      <file>${LOG_FILE}</file>
      <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
        <fileNamePattern>${LOG_FILE}.%d{yyyy-MM-dd}.log</fileNamePattern>
      </rollingPolicy>
    </appender>
    <root level="ERROR">
      <appender-ref ref="CONSOLE"/>
      <appender-ref ref="ROLLING-FILE"/>
    </root>
  </springProfile>

  <springProfile name="prod">
    <appender name="ROLLING-FILE"
      class="ch.qos.logback.core.rolling.RollingFileAppender">
      <encoder>
        <pattern>${FILE_LOG_PATTERN}</pattern>
      </encoder>
      <file>${LOG_FILE}</file>
      <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
        <fileNamePattern>${LOG_FILE}.%d{yyyy-MM-dd}.%i.gz</fileNamePattern>
        <timeBasedFileNamingAndTriggeringPolicy
          class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
          <maxFileSize>10MB</maxFileSize>
        </timeBasedFileNamingAndTriggeringPolicy>
      </rollingPolicy>
    </appender>

    <root level="ERROR">
      <appender-ref ref="ROLLING-FILE"/>
    </root>
  </springProfile>
</configuration>
>, "name": "GENERIC-RESOURCE-API ${project.version}", "module": "GENERIC-RESOURCE-API", "version": "${project.version}", "comments": "", "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>", "outputs": 1, "x": 333.00391006469727, "y": 122.0039234161377, "z": "f08fa760.244488", "wires": [ [ "d7638881.bfb4c8" ] ] }, { "id": "d7638881.bfb4c8", "type": "method", "name": "method sdwan-network-topology-operation-delete", "xml": "<method rpc='sdwan-network-topology-operation-delete' mode='sync'>\n", "comments": "", "outputs": 1, "x": 321.0040283203125, "y": 210.00390625, "z": "f08fa760.244488", "wires": [ [ "96e57ca9.97c2e" ] ] }, { "id": "96e57ca9.97c2e", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, "x": 491.44836044311523, "y": 272.44836235046387, "z": "f08fa760.244488", "wires": [ [ "3ea486fa.98e8fa", "5a29219c.c419d", "8d5f8731.51c938", "40643a2d.08d114", "24e3bcc2.2186b4", "c8f5f5d0.be2858", "cb920ad8.ed1188" ] ] }, { "id": "3ea486fa.98e8fa", "type": "call", "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters", "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n", "comments": "", "outputs": 1, "x": 972.3928146362305, "y": 67.00391006469727, "z": "f08fa760.244488", "wires": [ [] ] }, { "id": "5a29219c.c419d", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-network-topology-operation-delete\"/>\n<parameter name=\"field3\" value=\"SDWAN-Delete\"/>\n", "comments": "", "outputs": 1, "x": 766.7816314697266, "y": 133.33727836608887, "z": "f08fa760.244488", "wires": [ [] ] }, { "id": "8d5f8731.51c938", "type": "set", "name": "set networkId and network-object-path", "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />", "comments": "", "x": 851.448314666748, "y": 381.4281978607178, "z": "f08fa760.244488", "wires": [] }, { "id": "40643a2d.08d114", "type": "returnSuccess", "name": "return success", "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n", "comments": "", "x": 780.5595626831055, "y": 444.9835858345032, "z": "f08fa760.244488", "wires": [] }, { "id": "c8f5f5d0.be2858", "type": "set", "name": "set new network length", "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\n\t\n", "comments": "", "x": 810.0809860229492, "y": 258.89910793304443, "z": "f08fa760.244488", "wires": [] }, { "id": "24e3bcc2.2186b4", "type": "set", "name": "Remove networks from ServiceData", "xml": "<set>\n\t<parameter name=\"service-data.networks.network[$tmp.nidx].\" value=\"\"/>\n\n", "comments": "", "x": 850.7051429748535, "y": 306.8670496940613, "z": "f08fa760.244488", "wires": [] }, { "id": "cb920ad8.ed1188", "type": "delete", "name": "delete SDWAN VPNInstance connectivity in AAI", "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $network-topology-operation-input.network-information.network-id'>\n", "comments": "", "outputs": 1, "x": 888.6364860534668, "y": 200.01019191741943, "z": "f08fa760.244488", "wires": [ [] ] } ]