What is Logging?

In general, logging refers to keeping track or tally of something. Logging helps to control process and make it efficient. Simple example is diary.