-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
approvedIssue has been aprovedIssue has been aprovedenhancementNew feature or requestNew feature or request
Description
Improve logging in lemonapi
Current logging within API is very minimal and would require improving to ensure that everything necessary is logged and with appropriate format / level. This makes tracking possible bugs and security incidents easier.
Steps
- Authentication/Authorization area should log failed log-in attempts and when possible invalid token are used to attempt to access endpoints.
- Exceptions should be logged in a way that they are easy to find and understand what is happening and where
- Other endpoints should include necessary information when request is made to one.
- Consider adding middleware to log requests.
Currently used logger for logging is loguru.
Usage is as simple as:
from loguru import logger
logger.info("This is info log!") Metadata
Metadata
Assignees
Labels
approvedIssue has been aprovedIssue has been aprovedenhancementNew feature or requestNew feature or request