Cannot enable custom logging for rules - 'LogInfo' cannot be resolved to an item or type

Hi,

After upgrading to OH2.2 and playing with custom logging for rules - I cannot somehow make it working. rules.log file doesn’t appear in the log folder and I am constantly getting the following error:

2018-02-19 12:35:54.973 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Czas czujki ruchu - Pokoj Krzyska': The name 'LogInfo' cannot be resolved to an item or type; line 417, column 2, length 91

org.ops4j.pax.logging.cfg looks to be setup ok as I checked with other working configurations posted in other threads.
My example rule looks like:

rule "Czas czujki ruchu - Pokoj Krzyska"
when
	Item Czujka_Pietro_Gabinet_kr received command ON
then
	Czujka_Pietro_Gabinet_kr_Czas.postUpdate( new DateTimeType() )
	LogInfo("rules", "Osoba widziana w pokoju Krzyska o: "+Czujka_Pietro_Gabinet_kr_Czas.state)
end

Appreciate a hint into right direction :slight_smile:

logInfo, not LogInfo

Yes, that was it - simple, but couldn’t find it. :confused:

Thanks a lot!

1 Like