Logging

Schemas for the logging config.

class AuditSchema(enabled=True)[source]

This class represents the [logging.audit] section of our config.toml file.

enabled

Flag to control if the logging should be enabled or not.

Type:

bool

enabled: bool = True
class LoggingSchema(level='INFO', audit=<factory>)[source]

This class represents the [logging] section of our config.toml file.

level

The level to log. Defaults to “INFO”.

Type:

str

responses

If the responses should be logged. Defaults to True.

Type:

bool

question

If the questions should be logged. Defaults to True.

Type:

bool

users

A dictionary of users and their logging preferences.

Type:

dict[str, dict[str, bool]]

audit: AuditSchema
level: str = 'INFO'