-
Notifications
You must be signed in to change notification settings - Fork 0
Logging output
Adrien Schaller edited this page Apr 21, 2020
·
1 revision
logging "stdout" format "Json"
Le "status_code" peut prendre différentes valeurs :
- 0 = Success
- 1 = Warning, temps de réponse trop long
- 2 = Critical, timeout et 404
{"retcode": <CODE>, "url": <URLw>, "status_code": <CODE>, "result": <RES>, "timereq": <TEMPS_DE_REQUETE>, "message": <MESSAGE_RETOUR>, "tags": [tag, tag]}
Exemple
{"retcode": 200, "url": "https://www.theverge.com", "status_code": 0, "timereq": 0.023188114166259766, "message": "ok", "tags": ["prod", "example"]}
{"retcode": 200, "url": "https://www.impots.gouv.fr/portail/", "status_code": 0, "timereq": 0.012618064880371094, "message": "ok"}
crawlurl - licence Apache 2.0 - LICENSE - par PG3.