logback-config: added support for FileAppender and TimeBasedRollingPolicy
[controller.git] / opendaylight / config / logback-config / src / main / yang / config-logging.yang
index d0307f619490b83d7ddd34f68b22260f1b23134f..7f4ea39dd4ccb66d5e65979ce994848b884d2dd0 100644 (file)
@@ -31,6 +31,29 @@ 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;
+                }
+                config:java-name-prefix FileAppenderTO;
+            }
+            
             list rolling-appenders {
                 leaf append {
                     type boolean;
@@ -71,7 +94,21 @@ module config-logging {
                     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 0;
+                }
                 config:java-name-prefix RollingFileAppenderTO;
             }