Get Messages from Console

Hi. I want to get all messages displayed in Domino Console.

What i need to do? C API, C++ API, Java …

I want to create an application that if a message is displayed in console the application do an action.

Subject: What about reading it from log.nsf?

Subject: RE: What about reading it from log.nsf?

Is a possibility, but i want something that happens as soon as possible, and not wait server to write to log.nsf.

Like catch a crash in a task or a corrupted database …