Is it possible to log/monitor Instant Messages on a Global, Domain or per user setting?

The server will only service messages to local users.