class twisted.logger._flatten.KeyFlattener: (source)
A KeyFlattener computes keys for the things within curly braces in PEP-3101-style format strings as parsed by string.Formatter.parse.
| Method | __init__ | Initialize a KeyFlattener. |
| Instance Variable | keys | Undocumented |
| Method | flatKey | Compute a string key for a given field/format/conversion. |
Compute a string key for a given field/format/conversion.
| Parameters | fieldName | A format field name. (type: str) |
| formatSpec | A format spec. (type: Optional[str]) | |
| conversion | A format field conversion type. (type: Optional[str]) | |
| Returns | A key specific to the given field, format and conversion, as well as the occurrence of that combination within this KeyFlattener's lifetime. (type: str) | |