Skip to content

[FEATURE] Implement logic for custom logging. #159

@SamakshAgarwal1112

Description

@SamakshAgarwal1112

Is your feature request related to a problem? Please describe.

Custom logs are to be implemented for both environments, development and production. Custom logs will be useful to add convenient data that could be helpful in debugging or removing unwanted data flooding the log stream.

Describe the solution you'd like!

  • Three different custom formatters are to be defined in the LOGGING dictionary - simple, verbose, and detailed, with increasing detailing of level messages.
  • Two different handlers are to be defined, one for showing logs in the terminal which is to be used in development, and one for storing logs in the file, which is to be used in production.

Describe alternatives you've considered

Feel free to suggest!

Developer Help

  • Refer to the official Django documentation for logging module!
  • The LOGGING dictionary is to be defined at the bottom of the common.py.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions