Logging events
In computer software, logging is a well-known technique used to help troubleshoot a problem, record milestones, understand behavior, retrieve information, and check historical events, among other useful actions. Despite these advantages, not many developers add proper logging to their code. In fact, some developers do nothing and add logging only when the program has problems and needs debugging.
In network automation, logging is even more important, because network elements are normally distributed and rely heavily on logging to be able to be audited in case of a problem or if an improvement is needed. Adding logging to your code is a good practice that will be appreciated by several levels of engineering, such as network operators, network planners, network security, and network designers, among others.
But one important point here that must be observed is that time synchronization between network elements is mandatory to allow logging to be useful. Protocols...