LogHandler is responsible for handling and recording log messages.
Logs a message with a specified category.