dhcp icon indicating copy to clipboard operation
dhcp copied to clipboard

dhcpv4: server4: Add a simple logging implementation

Open purpleidea opened this issue 5 years ago • 3 comments

This adds a simple implementation of the logging struct so that you don't need to implement the complex interface if you don't need it.

purpleidea avatar Mar 29 '20 07:03 purpleidea

I think that the solution in https://github.com/insomniacslk/dhcp/pull/371/files was over-engineered, but in any case, I expect most people like myself just want simple logging. This patch adds a simple implementation so that you can easily "get logging" by passing in your own printf function straight away.

This is meant as an alternative to https://github.com/insomniacslk/dhcp/pull/373 which wasn't accepted.

Cheers!

purpleidea avatar Mar 29 '20 07:03 purpleidea

Can you sign the commit?

pmazzini avatar Aug 29 '20 20:08 pmazzini

@pmazzini You want to merge this now?

purpleidea avatar Aug 29 '20 21:08 purpleidea