The Manager module records individual logs to: logs/flashphoner_manager.log. Logs are rotated on the hourly base:
Code Block | ||||
---|---|---|---|---|
| ||||
flashphoner_manager.log flashphoner_manager.log.2014-10-27-09 flashphoner_manager.log.2014-10-27-12 flashphoner_manager.log.2014-11-07-19 |
A log contains general information about WCS Manager operation and also REST API requests.
Here is an example of HTTP / REST messages logging:
Code Block | ||||
---|---|---|---|---|
| ||||
08:59:31,367 INFO agerRemoteRmiService - RMI TCP Connection(22)-127.0.0.1 SEND REST OBJECT ==> URL:http://localhost:9091/EchoApp/CallStatusEvent OBJECT: { "appKey" : "defaultApp", "sessionId" : "/192.168.56.1:32323/192.168.56.2:8080", "callId" : "dd1c6fa26290c8c04813c1a9ca53376d@192.168.56.2", "incoming" : false, "status" : "TRYING", "sipStatus" : 100, "caller" : "3000", "visibleNameCaller" : "3000", "callee" : "3002", "visibleNameCallee" : "<sip:3002@192.168.56.2>", "hasVideo" : false, "visibleName" : "3000", "mediaProvider" : "WebRTC", "sipMessageRaw" : "SIP/2.0 100 Giving a try\r\nCall-ID: dd1c6fa26290c8c04813c1a9ca53376d@192.168.56.2\r\nCSeq: 2 INVITE\r\nFrom: \"3000\" <sip:3000@192.168.56.2>;tag= 5445e236\r\nTo: <sip:3002@192.168.56.2>\r\nVia: SIP/2.0/UDP 192.168.56.2:30000;branch=z9hG4bK808e4543355dda8897ee9f27afbe3ffc\r\nServer: OpenSIPS (1.8.0-notls (x86_64/l inux))\r\nContent-Length: 0\r\n\r\n" } |
Logging settings are stored in a separate log4j.properties file. See WCS Manager settings.
This is a standard log4j config. It looks very straightforward and provides recording of logs to the flashphoner_manager.log file specified in 'log4j.appender.File' with hourly rotation 'yyyy-MM-dd-HH' and the output message format of '%d{HH:mm:ss,SSS} %-5p %20.20c{1}' - %t %m%n'. For detailed information about the log4j.properties file format and additional settings, please refer to log4j documentation.