Code Monkey home page Code Monkey logo

Comments (6)

Vshnv avatar Vshnv commented on September 21, 2024 3

Hi,
This feature is currently being implemented in the feature/logging branch and is planned to be released with the 1.2.5 patch. We have published a snapshot version for trial. Could you please try out the latest snapshot version 1.2.5-SNAPSHOT and let us know if it meets your expectations?

Usage Example

ApplicationBuilder#logger((message, arguments) -> /* Call the logger implementation used by you */ )...

The LoggerProcess also provides another method called debug which prints even more detailed logs. To use it you would need to use the anonymous class syntax instead of a lambda.

ApplicationBuilder#logger(new ProcessLogger() {
            @Override
            public void log(String message, Object... args) {
                /* Call the logger implementation used by you */
            }

            @Override
            public void debug(String message, Object... args) {
                 /* Call the logger implementation used by you for detailed debug messages */
            }
})...

from slimjar.

Vshnv avatar Vshnv commented on September 21, 2024 1

Ah, my bad, Ill get to fixing that now.
Thank you

from slimjar.

AnttiMK avatar AnttiMK commented on September 21, 2024

Usage example looks great, thank you! Does slimjar.version=1.2.5-SNAPSHOT not work in gradle.properties? Gradle is unable to solve the dependency for me.

from slimjar.

Vshnv avatar Vshnv commented on September 21, 2024

It should work. Try adding https://repo.vshnv.tech/snapshots/ as a separate repository.

from slimjar.

AnttiMK avatar AnttiMK commented on September 21, 2024

let us know if it meets your expectations?

Got it working by declaring the snapshot repo. The logging works wonderfully and is very easy to implement, thank you very much for the quick addition of this feature! :)

from slimjar.

AnttiMK avatar AnttiMK commented on September 21, 2024

LOGGER.log("Resolved {0} @ {1}", dependency.getArtifactId(), result.map(Objects::toString).orElse(FAILED_RESOLUTION_MESSAGE));

There seems to be a bug here since an object reference is being logged:
image

from slimjar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.