Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mourginakis committed Oct 10, 2023
1 parent e5cdaf3 commit 47fe16d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ $ make prod
For more control over testing, see `tests/conftest.py`, and/or `Makefile`.


## Logging

Node Monitor writes all logs to the `logs/` directory.
- `logs/gunicorn_access.log` contains all HTTP requests.
- `logs/gunicorn_error.log` contains all gunicorn errors and information.
- `logs/node_monitor.log` contains all `Node Monitor` specific logs.



## Notes

Expand Down
5 changes: 2 additions & 3 deletions node_monitor/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
import node_monitor.load_config as c


## Flask uses the logging module internally. Calling `basicConfig` will
## globally overwrite the logging configuration, for every imported file,
## as well as Flask.
## Calling `basicConfig` will globally overwrite the root logging
## configuration, so changes propagate to all loggers in the application.
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(levelname)s: %(message)s',
Expand Down

0 comments on commit 47fe16d

Please sign in to comment.