Adding detailed logging to hydrus
See original GitHub issueI’m submitting a
- bug report.
- feature request.
Current Behaviour:
Currently, we don’t have any detailed logging system for hydrus. No logs are being generated.
Expected Behaviour:
We can generate the log files which could help the users for getting the Object_id
for any future manipulation
and developers for debugging faster.
We will have a separate log folder that will be generated while running hydrus server.
Logs
|
|_ _ hydrus.log
Log file format
Logs/hydrus.log
run_time : 12-may-12:00:00
API_Doc fetched Successfully.
Context generated.
Terminated!
Database setup Error.
Do you want to work on this issue?
yes, I and @farazkhanfk7 are working on this and changing the API response structure issue .
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Launch Arguments - hydrus network - GitHub Pages
An example of a launch command with arguments: C:\Hydrus Network\client.exe -d="E:\hydrus db" --no_db_temp_files. You can also add --help to your program ...
Read more >Hydrus Manual
Prints additional debug information to the log during the bootup phase of the application. --no_daemons. Launch the program without some background workers.
Read more >Enabling detailed logging on Deep Security Agent (DSA)
Locate a directory where you want to save the log, then click OK. Close the DbgView window. Enabling detailed logging of the Agent...
Read more >Hydrus Network on Tumblr
I fixed some bugs, added some new import and tag search options for advanced users, and made thumbnails look crisp at high UI...
Read more >Hydrus Microstent - EyeWiki
Hydrus Microstent as surgical therapy for mild to moderate open-angle glaucoma.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
first of all we need to establish an id for each request and assign the request an unique id (like a uuid). you can do this by using the
before_request
andafter_request
; this should be present in each log line together with timestamp and HTTP method used and uri.note: be sure that the log level is read from an environment variable and not hard-coded.
EDIT: you can start from structlog examples
please @farazkhanfk7 contribute to the discussion
If you need a reference for logging, please check structlog. We may want to use it organisation-wide.
It has the same API as standard Python
logging
, but allows many more features and having much more structured logs.