AgentLifeCycleAdapter::messageLogged

Hi!

I'm wondering if it's possible to discard a message directed to the log somehow? I am currently hooked into the messageLogged() callback, but I haven't found a way to discard any of the incomming messages.

/Johan

5 comments
Comment actions Permalink

Hi Johan

We would like to better understand your business goal behind this question.
Could you explain what kind of plugin are you developing.

Thanks

0
Comment actions Permalink

Hi,

I'm building a plugin that will allow you to tag certain lines as "important" (ie, errors or warnings). It works fine, but now each message that has changed priority gets duplicated.

/Johan

0
Comment actions Permalink

What build runner are you customizing? Can you control emitted messages directly? If so, you could modify them with our service message markup.

Michael

0
Comment actions Permalink

Hi,

The idea is to use it as a generic way of tagging output from a command line runner ((that does not have teamcity support/is not really prudent about using stderr) == a lot of stuff)
You'll configure the plugin by adding regular expressions for tagging 'important' output.

/Johan

0
Comment actions Permalink

hi Johan,

At the moment we don't have such feature, but this request is filed in TW-14870, please vote.

Michael

0

Please sign in to leave a comment.