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
How to do logging and how to improve it? There are two types of logging for Californium:
Internal logging to get the Californium implementation right. This is usually only of interest for the Californium team and when developing extensions. For now, we just use java.utils.logging here, which is not great, but there is also no alternative that stands out.
Operational logging to see what is going on. This is what users of Californium want to have in their logs. For this, it is best to disable the internal logging completely and use MessageInterceptors (see MessageTracer as example implementation). Just implement your preferred logger in a custom Interceptor and add it to the Endpoint. It will receive then log every message that enters and leaves the system. Additional custom logging could be done in your CoapResource implementations.
To improve this concept, it would be great to know if there are other things that are interesting during operation.
In the long-run, we might also want to change the internal logger. Maybe we can align the logger implementation over multiple IoT Eclipse projects or at least find something that is good for all Californium committers.
How to do logging and how to improve it? There are two types of logging for Californium:
To improve this concept, it would be great to know if there are other things that are interesting during operation.
In the long-run, we might also want to change the internal logger. Maybe we can align the logger implementation over multiple IoT Eclipse projects or at least find something that is good for all Californium committers.