import enum LOG_TYPE = "application" LOG_TAG = "ows1" # The list contains all the attributes listed in # http://docs.python.org/library/logging.html#logrecord-attributes RESERVED_FIELDS = ( "args", "asctime", "created", "exc_info", "exc_text", "filename", "funcName", "id", "levelname", "levelno", "lineno", "module", "msecs", "msecs", "message", "msg", "name", "pathname", "process", "processName", "relativeCreated", "thread", "threadName", "extra", "auth_token", "password", "stack_info", "taskName", ) class LogFormat(str, enum.Enum): JSON = "json" JSON_PRETTY = "json_pretty" DEBUG = "debug" DEBUG_EXTRA = "debug_extra" def __str__(self) -> str: return self.value