Added the message type in log as "Received" or "Sent".

Added the message type in log as "Received" or "Sent" so messages from like "login confirmation" can be easily recognized.