Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
493 stars 194 forks source link

Make log level adjustable #174

Closed StephanAv closed 1 year ago

StephanAv commented 1 year ago

The log level defaults to 1 (INFO). With the changes, the log level can be adjusted by a macro. E.g. when this library is used in another project, the ADS log level can be adjusted in the top level CMakeLists.txt with: add_definitions(-DADS_LOGLVL=3) which sets it to 3 (ERROR).

pbruenn commented 1 year ago

Your suggestion disables the possibility to change the log level dynamically. We merged an alternative here 1ec463cf3d991dc7f772d840a869d012278350a9