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'";
34 list rolling-appenders {
45 leaf encoder-pattern {
70 leaf file-name-pattern {
75 config:java-name-prefix RollingFileAppenderTO;
78 list console-appenders {
80 leaf encoder-pattern {
85 leaf threshold-filter {
94 config:java-name-prefix ConsoleAppenderTO;
108 leaf-list appenders {
111 config:java-name-prefix LoggerTO;
117 augment "/config:modules/config:module/config:state" {
119 when "/config:modules/config:module/config:type = 'logback'";
121 rpcx:rpc-context-instance "logback-rpc";
124 config:java-name-prefix StatusTO;
143 uses rpcx:rpc-context-ref {
144 refine context-instance {
145 rpcx:rpc-context-instance logback-rpc;