Skip to content

Overhaul logging #687

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

Closed
6 tasks done
josecelano opened this issue Feb 8, 2024 · 1 comment
Closed
6 tasks done

Overhaul logging #687

josecelano opened this issue Feb 8, 2024 · 1 comment
Labels
- Admin - Enjoyable to Install and Setup our Software - Developer - Torrust Improvement Experience Enhancement / Feature Request Something New EPIC Contains several subissues
Milestone

Comments

@josecelano
Copy link
Member

josecelano commented Feb 8, 2024

Relates to: torrust/torrust-index#468

Currently, the Tracker logs only include lines like this:

Loading default configuration file: `./share/default/config/tracker.development.sqlite3.toml` ...
2024-02-08T13:54:56.845883372+00:00 [torrust_tracker::bootstrap::logging][INFO] logging initialized.
2024-02-08T13:54:56.850937270+00:00 [UDP Tracker][INFO] Starting on: udp://0.0.0.0:6969
2024-02-08T13:54:56.851174369+00:00 [torrust_tracker::bootstrap::jobs][INFO] TLS not enabled
2024-02-08T13:54:56.852013834+00:00 [HTTP Tracker][INFO] Starting on: http://0.0.0.0:7070
2024-02-08T13:54:56.852030653+00:00 [HTTP Tracker][INFO] Started on: http://0.0.0.0:7070
2024-02-08T13:54:56.852036573+00:00 [torrust_tracker::bootstrap::jobs][INFO] TLS not enabled
2024-02-08T13:54:56.852200992+00:00 [API][INFO] Starting on http://127.0.0.1:1212
2024-02-08T13:54:56.852215812+00:00 [API][INFO] Started on http://127.0.0.1:1212
2024-02-08T13:54:56.852231242+00:00 [Health Check API][INFO] Starting on: http://127.0.0.1:1313
2024-02-08T13:54:56.852250182+00:00 [Health Check API][INFO] Started on: http://127.0.0.1:1313

Subtasks

@josecelano josecelano added Enhancement / Feature Request Something New - Developer - Torrust Improvement Experience - Admin - Enjoyable to Install and Setup our Software EPIC Contains several subissues labels Feb 8, 2024
@josecelano josecelano added this to the v3.0.0 milestone Feb 8, 2024
@josecelano
Copy link
Member Author

Please review this PR: torrust/torrust-index#485 before starting to implement this issue. It uses tower_http::trace::layer middlewares and it produces an output like this:

2024-02-12T18:47:12.390921554+00:00 [API][INFO] request; method=GET uri=/v1/about/license request_id=613cae04-85b5-46c5-a8d8-fe165c79e4e8
2024-02-12T18:47:12.391101653+00:00 [API][INFO] response; latency=0 status=200 OK request_id=613cae04-85b5-46c5-a8d8-fe165c79e4e8

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
- Admin - Enjoyable to Install and Setup our Software - Developer - Torrust Improvement Experience Enhancement / Feature Request Something New EPIC Contains several subissues
Projects
Status: Done
Development

No branches or pull requests

1 participant