By default, the Instant Messenger log file is stored as messenger.log under the user's home directory as follows:
/usr_home/.sunmsgr/messenger.log