Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dedicated file logger for netopeer2/netconf #1641

Open
Krisscut opened this issue Sep 16, 2024 · 1 comment
Open

Dedicated file logger for netopeer2/netconf #1641

Krisscut opened this issue Sep 16, 2024 · 1 comment
Labels
is:enhancement Request for adding new feature or enahncing functionality.

Comments

@Krisscut
Copy link

Hi !

This is a feature request/proposal.
Are you open to the idea of having a dedicated log file in parallel to the usual console logger to log all the netconf related messages ?
I want to have it separate to the main console output so that I can have both enabled at the same time, but keep the main log at info level for usual operation and the logfile at a more "debug" level to always have the rpc traces available. (I know that it is possible to have the messages in the console output using MSG option)

This is quite useful for instance to see at a glance the content of all the requests/replies transiting through the netopeer2-server.
We can also then parse the file using a tool like https://github.com/AeroFlorian/netconf-parser

On my end I did it patching netopeer2-server (to alter the nc logging callback and create the log file) + the libnetconf itself to filter the display of the get-schema replies. (which are pretty huge)

I attached an example output:
netconf_trace_example.log

And its view in the tool I mentioned:
image

This is a similar subject as #307

@michalvasko
Copy link
Member

No problem, if you create a nice PR, I will merge it. Just make sure the code is clean and all the new features optional.

@michalvasko michalvasko added the is:enhancement Request for adding new feature or enahncing functionality. label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:enhancement Request for adding new feature or enahncing functionality.
Projects
None yet
Development

No branches or pull requests

2 participants