Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Prefix http-log with timestamp #68

Merged
merged 8 commits into from
Aug 5, 2022
Merged

Prefix http-log with timestamp #68

merged 8 commits into from
Aug 5, 2022

Conversation

kingster
Copy link
Member

@kingster kingster commented Aug 5, 2022

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
Copy link

1 similar comment
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

1 similar comment
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

1 similar comment
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

1 similar comment
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

1 similar comment
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

1 similar comment
@AppVeyorBot
Copy link

@kingster kingster merged commit f012ed3 into master Aug 5, 2022
@kingster kingster deleted the http-log branch August 5, 2022 15:34
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants