Version 1.1

Vortrag: Helpful logging with Python

Clear communication in log messages

Event large

While the Python logging module makes it simple to add flexible logging to your application, wording log messages and choosing the appropriate level to maximize their helpfulness is a topic hardly covered in the documentation. This talk give guidelines on when to choose a certain log level, what information to include and which wording templates to use.

The Python standard library includes a logging module that makes it simple to add flexible logging to your application. The technicalities of logging are well covered in the documentation and various blogs. However it is less clear how to choose log level depending on the situation and how to word log messages to maximize their helpfulness.

In this talk guidelines and examples are given to answer the following questions for each log level (INFO, ERROR, CRITICAL, WARNING and DEBUG):

- When to log at a certain level?
- Which information to include for messages on a certain level?
- What are common templates for messages on a certain level?


Tag: 04.05.2019
Anfang: 15:30
Dauer: 00:30
Raum: F4.22
Track: PyDays 2
Sprache: en




Uns interessiert deine Meinung! Wie fandest du diese Veranstaltung?

Concurrent Events