You specify the location of the log files when you run the configure utility after installing Instant Messaging. Typically, log files are stored in im_runtime_base/log. See Instant Messaging Server Directory Structure for information on locating im_runtime_base.
If you are using log4j for log file generation in your deployment, the logger will also use the directory you specify during configuration as the base directory in which to store log4j logs.