geckordp.settings module

class geckordp.settings.Settings

Bases: object

Global settings for geckordp.

property DEBUG: int

Sets geckordp in debug mode. Environment variable: GECKORDP_DEBUG

Returns:

0: disabled, 1: enabled

Return type:

int

property DEBUG_EVENTS: int

Logs all received events. Environment variable: GECKORDP_DEBUG_EVENTS

Returns:

0: disabled, 1: enabled

Return type:

int

property DEBUG_REQUEST: int

Logs all sent requests. Environment variable: GECKORDP_DEBUG_REQUEST

Returns:

0: disabled, 1: enabled

Return type:

int

property DEBUG_REQUEST_FORMAT: int

Formats the debug print output of the sent requests. Environment variable: GECKORDP_DEBUG_REQUEST_FORMAT

Returns:

0: disabled, 1: enabled

Return type:

int

property DEBUG_RESPONSE: int

Logs all received responses. Environment variable: GECKORDP_DEBUG_RESPONSE

Returns:

0: disabled, 1: enabled

Return type:

int

property DEBUG_RESPONSE_FORMAT: int

Formats the debug print output of the received responses. Environment variable: GECKORDP_DEBUG_RESPONSE_FORMAT

Returns:

0: disabled, 1: enabled

Return type:

int

property LOG_FILE: str

Write logs to file. Environment variable: GECKORDP_LOG_FILE

Returns:

“”: disabled, “xyz.log”: enabled

Return type:

str

property LOG_LEVEL: str

The log level. Environment variable: GECKORDP_LOG_LEVEL

Returns:

“debug”, “info”, “warn”, “error”, “fatal”

Return type:

str