Support disable logging console
See original GitHub issueEnhancement summary
Support deactivating console logging on logging settings
Which component of AVD is impacted
eos_cli_config_gen
Use case example
Need to apply the following commands to a switch:
no logging console
However the logging datamodel does not support this. I am using eos_cli
for now, but requesting support for this feature
Describe the solution you would like
Data model update, to look like the following (relevant change on the console settings):
logging:
console:
enable: <true, false | default --> true>
level: < severity_level >
monitor: < severity_level >
buffered:
size: < messages_nb (minimum of 10) >
level: < severity_level >
trap: < severity_level >
synchronous:
level: < severity_level | default --> critical >
format:
timestamp: < high-resolution | traditional >
hostname: < fqdn | ipv4 >
sequence_numbers: < true | false >
source_interface: < source_interface_name >
vrfs:
< vrf_name >:
source_interface: < source_interface_name >
hosts:
< syslog_server_1 >:
protocol: < tcp | udp (default udp) >
ports:
- < custom_port_1 >
- < custom_port_2 >
< syslog_server_2 >:
ports:
- < custom_port_1 >
policy:
match:
match_lists:
< match_list >:
action: < discard >
Describe alternatives you have considered
using eos_cli
Additional context
No response
Contributing Guide
- I agree to follow this project’s Code of Conduct
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
logging - how to stop console logging - Cisco Community
I have turned on logging. I set up a syslog server. But log messages stop me from doing anything on the console. How...
Read more >How to quickly and conveniently disable all console.log ...
How to use the above 'logger'? In your ready event, call logger.disableLogger so that console messages are not logged. Add calls to logger....
Read more >How to Disable Console Logging in Spring Boot - Baeldung
2. How to Disable the Console Output for Logback · logging.file=baeldung-disabled-console.log · logging.pattern.console= · logging.level.root=OFF
Read more >How to disable logging to the local console on WiNG devices
Question. How to disable logging to the local console on WiNG devices ; Environment. WiNG ; Answer. It can be disable by using...
Read more >How do I disable messages or logging from printing on the ...
Also, tell us about the syslog version, kernel version, release and sample messages that you get console for further help. Jamie Bainbridge's ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Valid input under the level key are the syslog severity levels. “none” is not part of them and “disabled” also isn’t.
In order to avoid collision with the “None” keyword we should use “disabled” as Claus explained
Is logging none a valid eos input? If that’s the case, probably not ideal to masquerade it to sth different as there might be a case where someone wants logging none explicitly declared?