1 // vi: set smarttab et sw=4 tabstop=4:
2 module config-logging {
4 namespace "urn:opendaylight:params:xml:ns:yang:controller:logback:config";
7 import config { prefix config; revision-date 2013-04-05; }
8 import rpc-context { prefix rpcx; revision-date 2013-06-17; }
10 organization "Cisco Systems, Inc.";
13 "This module contains the base YANG definitions for NS-OS
16 revision "2013-07-16" {
23 "Actual state of logback configuration.";
24 base config:module-type;
25 config:java-name-prefix Logback;
30 augment "/config:modules/config:module/config:configuration" {
32 when "/config:modules/config:module/config:type = 'logback'";
45 leaf encoder-pattern {
55 config:java-name-prefix FileAppenderTO;
58 list rolling-appenders {
69 leaf encoder-pattern {
95 leaf file-name-pattern {
100 leaf rolling-policy-type {
110 leaf clean-history-on-start {
114 config:java-name-prefix RollingFileAppenderTO;
117 list console-appenders {
119 leaf encoder-pattern {
124 leaf threshold-filter {
135 config:java-name-prefix ConsoleAppenderTO;
150 leaf-list appenders {
153 config:java-name-prefix LoggerTO;
159 augment "/config:modules/config:module/config:state" {
161 when "/config:modules/config:module/config:type = 'logback'";
163 rpcx:rpc-context-instance "logback-rpc";
166 config:java-name-prefix StatusTO;
185 uses rpcx:rpc-context-ref {
186 refine context-instance {
187 rpcx:rpc-context-instance logback-rpc;