Changed the design of interaction between log messages and the logger.

- Renamed LogMessage to LoggerMessage.