Merge "Changed maximumEntries to correct int rather than long"
[controller.git] / opendaylight / config / logback-config / src / main / yang / config-logging.yang
index d0307f619490b83d7ddd34f68b22260f1b23134f..3b28b574696683540391dd53ab041b0b40dd7ebb 100644 (file)
@@ -31,6 +31,30 @@ module config-logging {
         case logback {
             when "/config:modules/config:module/config:type = 'logback'";
 
+            list file-appenders {
+               leaf append {
+                    type boolean;
+                    mandatory false;
+                }
+
+                leaf file-name {
+                    type string;
+                    mandatory true;
+                }
+                
+                leaf encoder-pattern {
+                    type string;
+                    mandatory true;
+                }
+                
+                leaf name {
+                    type string;
+                    mandatory true;
+                }
+                key name;
+                config:java-name-prefix FileAppenderTO;
+            }
+            
             list rolling-appenders {
                 leaf append {
                     type boolean;
@@ -66,12 +90,27 @@ module config-logging {
                     type string;
                     mandatory true;
                 }
+                key name;
 
                 leaf file-name-pattern {
                     type string;
                     mandatory true;
                 }
-
+                
+                leaf rolling-policy-type {
+                    type string;
+                    mandatory true;
+                }
+                
+                leaf max-history {
+                    type int32;
+                    mandatory true;
+                }
+                
+                leaf clean-history-on-start {
+                    type boolean;
+                    default false;
+                }
                 config:java-name-prefix RollingFileAppenderTO;
             }
 
@@ -91,6 +130,8 @@ module config-logging {
                     type string;
                     mandatory true;
                 }
+                key name;
+
                 config:java-name-prefix ConsoleAppenderTO;
             }
 
@@ -99,6 +140,7 @@ module config-logging {
                     type string;
                     mandatory true;
                 }
+                key logger-name;
 
                 leaf level {
                     type string;