Nero generates a comprehensive log of the actions being processed at any given time. You can access this log via a web interface when you are on the same network as the gateway.
The log file contains a lot of information that can be difficult to parse. We recommend only using the log if you understand how to read software logs. Please get in touch if you need help with a problem you are experiencing.
Accessing the log
When you are on the same network as your gateway you can access the logs via a simple web interface built into the gateway. This interface also colour codes messages, making it simpler to find specific errors or actions.
- Get the IP address of your Nero gateway
- In a new browser window, go to http://[IP]/cgi-bin/cmh/log.sh?Device=LuaUPnP
- Reload the page to get new any new log messages, new messages appear at the end of the page.
For example, if my gateway was at the IP address 10.0.0.82, I would browse to http://10.0.0.82/cgi-bin/cmh/log.sh?Device=LuaUPnP to access my logs.
Reading the logs
Because actions on Nero are not always performed one after the other, it is possible that the information you need is spread amongst other actions on the gateway. Ensure you confirm that the lines you are looking at are correct for your investigation.
In the example lines below you can see the action of turning on one of the outputs of a Nero Dual Relay, in this case for device number 45.
08 08/19/19 14:19:28.952 JobHandler_LuaUPnP::HandleActionRequest device: 45 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x74945520>
08 08/19/19 14:19:28.953 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=45 <0x74945520>
08 08/19/19 14:19:28.953 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:SwitchPower1 <0x74945520>
08 08/19/19 14:19:28.954 JobHandler_LuaUPnP::HandleActionRequest argument action=SetTarget <0x74945520>
08 08/19/19 14:19:28.954 JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=1 <0x74945520>
08 08/19/19 14:19:28.954 JobHandler_LuaUPnP::HandleActionRequest argument rand=0.5469429775101091 <0x74945520>
06 08/19/19 14:19:28.955 Device_Variable::m_szValue_set device: 45 service: urn:upnp-org:serviceId:SwitchPower1 variable: Target was: EMPTY now: 1 #hooks: 0 upnp: 0 skip: 0 v:0xf067f8/NONE duplicate:0 <0x74945520>
06 08/19/19 14:19:29.178 Device_Variable::m_szValue_set device: 45 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 0 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0xf06860/NONE duplicate:0
All action items are marked with an 08 at the beginning of the line. The lines marked with 06 indicate reports the gateway has received from the device, in this case confirming that the action succeeded.
Capture more entries
Nero operates in a standard logging mode all of the time, however, there are times when you need to see every action, such as when you are developing a plugin. Enabling verbose logging extends the logging process to every single item. By default, this will be for 24 hours from activation.