Forum Discussion

jeans's avatar
jeans
Occasional Contributor
15 years ago

OnLogEvent and log types

Is it possible to know the log type from inside OnLogEvent handler?

I could use the OnLogError, OnLogWarning etc., but it seems counterproductive - in particular much harder to maintain.

3 Replies

  • Hi Jean,



    The OnLogEvent event occurs when you post a message of the 'event' type to the log. For other message types, you need to use appropriate events (OnLogMessage for messages, OnLogError for errors, etc.).



  • jeans's avatar
    jeans
    Occasional Contributor
    Right, I was misled by the name while looking for a generic OnLog event handler.

    Thanks!