[resolved] tLogCatcher - Priority

One Star

[resolved] tLogCatcher - Priority

Hi,
When a tWarn/tDie message is caught by the tLogCatcher it processes various pieces of data. One of these is the "Priority" that relates to the priority drop down box in the tWarn/tDie component. Is it possible to access the Text for the "Priority" rather than the index?
For example, I would like to see "Warning" instead of 4. Is there an object that stores this enumeration that I could access, rather than having to write my own?
Thanks,
David

Accepted Solutions
Community Manager

Re: [resolved] tLogCatcher - Priority

Hello David
Is there an object that stores this enumeration that I could access, rather than having to write my own?

No, but you can convert the digit to string message on tMap, eg:
tLogCatcher--row2-->tMap--tLogRow
on expression of priority column:
row2.priority==4?"warrning":(row2.priority==5?"error":"other info")

Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

All Replies
Community Manager

Re: [resolved] tLogCatcher - Priority

Hello David
Is there an object that stores this enumeration that I could access, rather than having to write my own?

No, but you can convert the digit to string message on tMap, eg:
tLogCatcher--row2-->tMap--tLogRow
on expression of priority column:
row2.priority==4?"warrning":(row2.priority==5?"error":"other info")

Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business