Software Enthusiastic
Software Enthusiastic

Reputation: 26425

Best practices for logging in django project

It is always good to utilize existing patterns for solving the given problem rather then reinventing the wheel. This time it is about doing logging stuffs in django based project.

Can you please share your ideas with me and other about how do you prefer to implement logging in django based project in the following context?

... Any little help would be really good for all django developers ...

cheers

Upvotes: 9

Views: 5984

Answers (1)

Alex Martelli
Alex Martelli

Reputation: 881527

In Django, like in any other Python application, I'd use the standard library's logging module and call logging.debug, logging.info etc as appropriate to each message.

Upvotes: 7

Related Questions