Skip to content

Logging from CPLC #220

@mkoncek

Description

@mkoncek

I would like to discuss the logging issue before making a new release.
@judovana once suggested that CPLC should log everything using the provided MessagesListener with level to mark the importance.
I tried to do that but it makes using JRD impossible due to the flood.
See https://github.com/mkoncek/classpathless-compiler/blob/master/impl/src/main/java/io/github/mkoncek/classpathless/impl/LoggingSwitch.java#L121

If you uncomment lines 123-125 and remove lines 128-132 and try to run JRD... be ready to kill the process or get OOM'd.
Currently CPLC logs many things and this will probably stay so to ease with development.

So... on your side: either implement some filtering or let's have a talk about what you would really need to log from CPLC.
The current approach is that enabling system properties specifies what logging and where it happens - that is for my own debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions