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 {
54 config:java-name-prefix FileAppenderTO;
57 list rolling-appenders {
68 leaf encoder-pattern {
93 leaf file-name-pattern {
98 leaf rolling-policy-type {
108 leaf clean-history-on-start {
112 config:java-name-prefix RollingFileAppenderTO;
115 list console-appenders {
117 leaf encoder-pattern {
122 leaf threshold-filter {
131 config:java-name-prefix ConsoleAppenderTO;
145 leaf-list appenders {
148 config:java-name-prefix LoggerTO;
154 augment "/config:modules/config:module/config:state" {
156 when "/config:modules/config:module/config:type = 'logback'";
158 rpcx:rpc-context-instance "logback-rpc";
161 config:java-name-prefix StatusTO;
180 uses rpcx:rpc-context-ref {
181 refine context-instance {
182 rpcx:rpc-context-instance logback-rpc;