Skip to content

logging.config.dictConfig can’t set SysLogHandler.append_nul #132539

Closed
@Hawk777

Description

@Hawk777

Bug report

Bug description:

Because logging.config.dictConfig can only pass constructor parameters, it’s impossible to set SysLogHandler.append_nul via dictConfig (for that matter, it’s also impossible to set ident, but that doesn’t really matter because you can just prepend the relevant text to every message in the formatter instead). Given that the SysLogHandler constructor only takes parameters of specific fixed names, no correct code can already have been passing a parameter to it named append_nul and been expecting something else to happen, so I don’t see how this would be a backwards compatibility issue.

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidpendingThe issue will be closed if no feedback is providedstdlibPython modules in the Lib dir

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions