# {py:mod}`arelle.logging.handlers.LogHandlerWithXml` ```{py:module} arelle.logging.handlers.LogHandlerWithXml ``` ```{autodoc2-docstring} arelle.logging.handlers.LogHandlerWithXml :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`LogHandlerWithXml ` - ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`DEFAULT_JSON_MAX_ATTRIBUTE_LENGTH ` - ```{autodoc2-docstring} arelle.logging.handlers.LogHandlerWithXml.DEFAULT_JSON_MAX_ATTRIBUTE_LENGTH :summary: ``` * - {py:obj}`DEFAULT_XML_MAX_ATTRIBUTE_LENGTH ` - ```{autodoc2-docstring} arelle.logging.handlers.LogHandlerWithXml.DEFAULT_XML_MAX_ATTRIBUTE_LENGTH :summary: ``` ```` ### API ````{py:data} DEFAULT_JSON_MAX_ATTRIBUTE_LENGTH :canonical: arelle.logging.handlers.LogHandlerWithXml.DEFAULT_JSON_MAX_ATTRIBUTE_LENGTH :value: > 4096000 ```{autodoc2-docstring} arelle.logging.handlers.LogHandlerWithXml.DEFAULT_JSON_MAX_ATTRIBUTE_LENGTH ``` ```` ````{py:data} DEFAULT_XML_MAX_ATTRIBUTE_LENGTH :canonical: arelle.logging.handlers.LogHandlerWithXml.DEFAULT_XML_MAX_ATTRIBUTE_LENGTH :value: > 128 ```{autodoc2-docstring} arelle.logging.handlers.LogHandlerWithXml.DEFAULT_XML_MAX_ATTRIBUTE_LENGTH ``` ```` `````{py:class} LogHandlerWithXml(logXmlMaxAttributeLength: int | None = None) :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml Bases: {py:obj}`logging.Handler` ````{py:attribute} logTextMaxLength :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.logTextMaxLength :type: int :value: > None ```{autodoc2-docstring} arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.logTextMaxLength ``` ```` ````{py:method} recordToXml(logRec: logging.LogRecord) -> str :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.recordToXml ```{autodoc2-docstring} arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.recordToXml ``` ```` ````{py:method} recordToJson(logRec: logging.LogRecord) -> dict[str, typing.Any] :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.recordToJson ```{autodoc2-docstring} arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.recordToJson ``` ```` ````{py:method} recordToHtml(logRec: logging.LogRecord) -> str :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.recordToHtml ```{autodoc2-docstring} arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.recordToHtml ``` ```` ````{py:method} get_name() :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.get_name ```` ````{py:method} set_name(name) :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.set_name ```` ````{py:attribute} name :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.name :value: > 'property(...)' ```` ````{py:method} createLock() :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.createLock ```` ````{py:method} acquire() :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.acquire ```` ````{py:method} release() :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.release ```` ````{py:method} setLevel(level) :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.setLevel ```` ````{py:method} format(record) :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.format ```` ````{py:method} emit(record) :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.emit :abstractmethod: ```` ````{py:method} handle(record) :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.handle ```` ````{py:method} setFormatter(fmt) :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.setFormatter ```` ````{py:method} flush() :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.flush ```` ````{py:method} close() :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.close ```` ````{py:method} handleError(record) :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.handleError ```` ````{py:method} addFilter(filter) :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.addFilter ```` ````{py:method} removeFilter(filter) :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.removeFilter ```` ````{py:method} filter(record) :canonical: arelle.logging.handlers.LogHandlerWithXml.LogHandlerWithXml.filter ```` `````