dragome-sdk icon indicating copy to clipboard operation
dragome-sdk copied to clipboard

Use standard java logging mechanism

Open nicolaichuk opened this issue 7 years ago • 8 comments

@fpetrola, Why you write own com.dragome.compiler.utils.Log instead of using standard java.util.logging.Logger?

nicolaichuk avatar Mar 07 '17 08:03 nicolaichuk

relate https://github.com/dragome/dragome-sdk/issues/169

nicolaichuk avatar Mar 07 '17 08:03 nicolaichuk

This is inherited from j2js project

fpetrola avatar Mar 07 '17 13:03 fpetrola

It will be good replace it to java.util.logging.Logger for more control over log process.

nicolaichuk avatar Mar 07 '17 13:03 nicolaichuk

I'd rater use SL4J which is an abstract layer for logging, it's not dependent of any particular logging framework.

fpetrola avatar Mar 07 '17 13:03 fpetrola

I think you mean slf4j. It is possible and SLF4J. It does not matter to me.

nicolaichuk avatar Mar 07 '17 13:03 nicolaichuk

ok, if we use slf4j we should find a slf4j backend to run also at client side, may be it's easier as log in console triggered by a system.out.println

fpetrola avatar Mar 07 '17 16:03 fpetrola

May be this one: https://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html

fpetrola avatar Mar 07 '17 16:03 fpetrola

Yes. I think capabilities of SimpleLogger as backend will be enough for now.

nicolaichuk avatar Mar 07 '17 19:03 nicolaichuk