App code to Log as "WARN" instead of "INFO"

How do I write the app code to write a Log message as a "WARN" instead of an "INFO"?

Message to Log
Temp is: %value%

Log: "Temp is: %value%"

INFO Temp is: 30

I searched for documentation on this but was not successful. Can I also have the link to the documentation where this is specified so I can review other possible options?

in a driver the difference is calling

log.warn("This is a warning log")

vs

log,info("This is an information log")

Was about to call out @bertabcd1234 .... but he heeded the call without me,.... :slight_smile:

This is not app code, as in Groovy code you're writing yourself, where you could do log.warn or log.info like above. This is Rule Machine, whose own code decides how things get logged, and the "Log" action in Rule Machine decided for you: it's "info." Rule Machine does not support changing this, at least not as-is (certainly possible as a feature request, but given that it's already a large app, I'm guessing the dev would want to see a pretty good use case :slight_smile: ).

3 Likes

Well spotted,,,, :slight_smile:

OK ... thanks

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.