What is the use of the "logging" module in Python?