You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a yang model for the new "Logger" table in the CONFIG DB (#12067)
- Why I did it
Add the ability to the user to save the loglevel and make it persistent to reboot.
- How I did it
Move the logger tables from the LOGLEVEL DB to the CONFIG DB. Add new yang model to verify the new config schema.
- How to verify it
1. change the orchagent loglevel (for example) -> swssloglevel -c orchagent -l DEBUG
2. save the loglevel -> run config save
3. reboot
4. verify that the orchagent log level is still DEBUG ->run run redis-cli -n 4 hgetall "LOGGER|orchagent"
Copy file name to clipboardExpand all lines: src/sonic-yang-models/doc/Configuration.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ Table of Contents
58
58
* [VOQ Inband Interface](#voq-inband-interface)
59
59
* [VXLAN](#vxlan)
60
60
* [Virtual router](#virtual-router)
61
+
* [LOGGER](#logger)
61
62
* [WRED_PROFILE](#wred_profile)
62
63
* [PASSWORD_HARDENING](#password_hardening)
63
64
* [SYSTEM_DEFAULTS table](#systemdefaults-table)
@@ -1705,6 +1706,34 @@ The packet action could be:
1705
1706
}
1706
1707
}
1707
1708
```
1709
+
1710
+
### Logger
1711
+
1712
+
In this table, the loglevel and logoutput of the components are defined. Each component
1713
+
will have the component name as its key; and LOGLEVEL and LOGOUTPUT as attributes.
1714
+
The LOGLEVEL attribute will define the verbosity of the component.
1715
+
The LOGOUTPUT attribute will define the file of printing the logs.
1716
+
1717
+
```
1718
+
{
1719
+
"LOGGER": {
1720
+
"orchagent": {
1721
+
"LOGLEVEL": "NOTICE",
1722
+
"LOGOUTPUT": "SYSLOG"
1723
+
},
1724
+
"syncd": {
1725
+
"LOGLEVEL": "DEBUG",
1726
+
"LOGOUTPUT": "STDOUT"
1727
+
},
1728
+
"SAI_API_LAG": {
1729
+
"LOGLEVEL": "ERROR",
1730
+
"LOGOUTPUT": "STDERR"
1731
+
}
1732
+
}
1733
+
}
1734
+
1735
+
```
1736
+
1708
1737
### PASSWORD_HARDENING
1709
1738
1710
1739
Password Hardening, a user password is the key credential used in order to verify the user accessing the switch and acts as the first line of defense in regards to securing the switch. PASSWORD_HARDENING - support the enforce strong policies.
0 commit comments