Hi All,
I’m trying to write a log from rule files to events.log but it saves the log to openhab.log only.
Example:
rule "Kitchen_ON"
when
Item Alice_Kitchen_Motion changed from OFF to ON or Item Martin_Kitchen_Motion changed from OFF to ON
then
logInfo( "Kitchen.rules","Kitchen_ON start" )
Kitchen_Light.sendCommand(ON)
Kitchen_Heating.sendCommand(50)
logInfo( "Kitchen.rules","Kitchen_ON finish" )
end
The log was save in openhab.log as:
2019-03-07 11:39:43.515 [INFO ] [smarthome.model.script.Kitchen.rules] - Kitchen_ON start
2019-03-07 11:39:43.518 [INFO ] [smarthome.model.script.Kitchen.rules] - Kitchen_ON finish
But I want it save in the events.log like this way:
2019-03-07 11:39:43.515 [INFO ] [smarthome.model.script.Kitchen.rules] - Kitchen_ON start
2019-03-07 11:33:29.152 [ome.event.ItemCommandEvent] - Item 'Kitchen_Light' received command ON
2019-03-07 11:33:29.154 [vent.ItemStateChangedEvent] - Kitchen_Light changed from OFF to ON
2019-03-07 11:33:29.155 [GroupItemStateChangedEvent] - gLight changed from OFF to ON through Kitchen_Light
2019-03-07 11:39:43.518 [INFO ] [smarthome.model.script.Kitchen.rules] - Kitchen_ON finish
What I need to do, like modify which field in the configuration file (org.ops4j.pax.logging.cfg) ?
Thanks!!