voiceip / tinyphone

Minimalist Windows / OSx / Linux SIP Softphone with API Control
GNU General Public License v3.0
114 stars 36 forks source link

Prefix http-log with timestamp #68

Closed kingster closed 1 year ago

kingster commented 1 year ago

Before

Using Transport Protocol: 2
Using Transport Port: 5060
Using UA: TinyPhone Pjsua2 v36.0.0.81
PJSUA2 Set DNS Resolvers Done... : 1
PJSUA2 Started...
Starting TinyPhone
Starting the TinyPhone HTTP API
Crow/master server is running at http://0.0.0.0:6060 using 10 threads
Call `app.loglevel(crow::LogLevel::Warning)` to hide Info level logs.
Request: 127.0.0.1:58038 0x7f7c7d86f600 HTTP/1.1 GET /
Response: 0x7f7c7d86f600 / 200 0
Request: 127.0.0.1:58039 0x7f7c7d87ae00 HTTP/1.1 GET /
Response: 0x7f7c7d87ae00 / 200 0
Request: 127.0.0.1:58040 0x7f7c7d86f600 HTTP/1.1 GET /
Response: 0x7f7c7d86f600 / 200 0
Request: 127.0.0.1:58041 0x7f7c7d87ae00 HTTP/1.1 GET /logs
Response: 0x7f7c7d87ae00 /logs 200 0
Request: 127.0.0.1:58043 0x7f7c7d037800 HTTP/1.1 GET /
Response: 0x7f7c7d037800 / 200 0
Request: 127.0.0.1:58044 0x7f7c7d87ae00 HTTP/1.1 GET /
Response: 0x7f7c7d87ae00 / 200 0
Request: 127.0.0.1:58046 0x7f7c7d86f600 HTTP/1.1 GET /
Response: 0x7f7c7d86f600 / 200 0
Request: 127.0.0.1:58047 0x7f7c5c82b200 HTTP/1.1 GET /logs
Response: 0x7f7c5c82b200 /logs 200 0

After

[2022-08-05 19:01:50.917] [http_logger] [info] Running Product Version: 36.0.0.81
[2022-08-05 19:01:50.971] [http_logger] [info] Using Transport Protocol: 2
[2022-08-05 19:01:51.077] [http_logger] [info] Using Transport Port: 5060
[2022-08-05 19:01:51.081] [http_logger] [info] Using UA: TinyPhone Pjsua2 v36.0.0.81
[2022-08-05 19:01:51.123] [http_logger] [info] PJSUA2 Set DNS Resolvers Done... : 1
[2022-08-05 19:01:51.130] [http_logger] [info] PJSUA2 Started...
[2022-08-05 19:01:51.131] [http_logger] [info] Starting TinyPhone
[2022-08-05 19:01:51.449] [http_logger] [info] Starting the TinyPhone HTTP API
[2022-08-05 19:01:51.520] [http_logger] [info] Crow/master server is running at http://0.0.0.0:6060 using 10 threads
[2022-08-05 19:01:51.520] [http_logger] [info] Call `app.loglevel(crow::LogLevel::Warning)` to hide Info level logs.
[2022-08-05 19:02:13.426] [http_logger] [info] Request: 127.0.0.1:58924 0x7f9600838c00 HTTP/1.1 GET /logs
[2022-08-05 19:02:13.957] [http_logger] [info] Response: 0x7f9600838c00 /logs 200 0
[2022-08-05 19:02:17.164] [http_logger] [info] Request: 127.0.0.1:58926 0x7f9600035400 HTTP/1.1 GET /logs
[2022-08-05 19:02:17.205] [http_logger] [info] Response: 0x7f9600035400 /logs 200 0
[2022-08-05 19:02:18.552] [http_logger] [info] Request: 127.0.0.1:58928 0x7f9600838c00 HTTP/1.1 GET /logs
AppVeyorBot commented 1 year ago

:white_check_mark: Build tinyphone 1.0.316 completed (commit https://github.com/voiceip/tinyphone/commit/3c6ff28dd0 by @kingster)

AppVeyorBot commented 1 year ago

:white_check_mark: Build tinyphone 1.0.316 completed (commit https://github.com/voiceip/tinyphone/commit/3c6ff28dd0 by @kingster)

AppVeyorBot commented 1 year ago

:white_check_mark: Build tinyphone 1.0.317 completed (commit https://github.com/voiceip/tinyphone/commit/d741183dff by @kingster)

AppVeyorBot commented 1 year ago

:white_check_mark: Build tinyphone 1.0.317 completed (commit https://github.com/voiceip/tinyphone/commit/d741183dff by @kingster)

AppVeyorBot commented 1 year ago

:white_check_mark: Build tinyphone 1.0.318 completed (commit https://github.com/voiceip/tinyphone/commit/dc85e625ea by @kingster)

AppVeyorBot commented 1 year ago

:white_check_mark: Build tinyphone 1.0.318 completed (commit https://github.com/voiceip/tinyphone/commit/dc85e625ea by @kingster)

AppVeyorBot commented 1 year ago

:white_check_mark: Build tinyphone 1.0.319 completed (commit https://github.com/voiceip/tinyphone/commit/190793d110 by @kingster)

AppVeyorBot commented 1 year ago

:white_check_mark: Build tinyphone 1.0.319 completed (commit https://github.com/voiceip/tinyphone/commit/190793d110 by @kingster)

AppVeyorBot commented 1 year ago

:white_check_mark: Build tinyphone 1.0.320 completed (commit https://github.com/voiceip/tinyphone/commit/6819752ced by @kingster)

AppVeyorBot commented 1 year ago

:white_check_mark: Build tinyphone 1.0.320 completed (commit https://github.com/voiceip/tinyphone/commit/6819752ced by @kingster)

AppVeyorBot commented 1 year ago

:white_check_mark: Build tinyphone 1.0.321 completed (commit https://github.com/voiceip/tinyphone/commit/fe893a0076 by @kingster)

AppVeyorBot commented 1 year ago

:white_check_mark: Build tinyphone 1.0.321 completed (commit https://github.com/voiceip/tinyphone/commit/fe893a0076 by @kingster)