Skip to content

how to write Python code that is compatible with both Jython and CPython? #3

@jason-s

Description

@jason-s

I have Python code that I use in both Jython and CPython, and I want to add logging statements that work normally in CPython, but use SLF4J when they run on Jython.

Is there any way to do this with the logbridge library? I don't want to rewrite dozens of Python files, I was hoping there was just some backend hook I could install so that Python use of the standard logging library would be sufficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions