X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Flogback-config%2Fsrc%2Fmain%2Fyang%2Fconfig-logging.yang;h=3b28b574696683540391dd53ab041b0b40dd7ebb;hb=03abf047ba966c53f4901d36ae5198156d66dc05;hp=d0307f619490b83d7ddd34f68b22260f1b23134f;hpb=655dffff17a7c45d181d0b15decf627fdd1238eb;p=controller.git diff --git a/opendaylight/config/logback-config/src/main/yang/config-logging.yang b/opendaylight/config/logback-config/src/main/yang/config-logging.yang index d0307f6194..3b28b57469 100644 --- a/opendaylight/config/logback-config/src/main/yang/config-logging.yang +++ b/opendaylight/config/logback-config/src/main/yang/config-logging.yang @@ -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;