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
Originally posted by ferchor2003 June 23, 2021
In my existing application I already have a custom mechanism to log information. I want to use that in my aricpp application instead of simply writing to std::out.
To that effect I have modified client.h and websocket.h to use a function of my choosing to log events with an added severity parameter.
Hopefully you will find this useful.
websocket.h
Add the LoggingSeverity and pLogInfoFnType definitions and calls to the new logging function:
Discussed in #57
Originally posted by ferchor2003 June 23, 2021
In my existing application I already have a custom mechanism to log information. I want to use that in my aricpp application instead of simply writing to std::out.
To that effect I have modified client.h and websocket.h to use a function of my choosing to log events with an added severity parameter.
Hopefully you will find this useful.
websocket.h
Add the LoggingSeverity and pLogInfoFnType definitions and calls to the new logging function:
Where LogCallback is a private member of the class:
I can then log events like in the following, replacing std::cout:
client.h
Add the ability to pass the custom logging function as a parameter to the constructor:
Application code
The text was updated successfully, but these errors were encountered: