Comments (6)
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.
Ah, my bad, Ill get to fixing that now.
Thank you
from slimjar.
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.
It should work. Try adding https://repo.vshnv.tech/snapshots/
as a separate repository.
from slimjar.
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.
There seems to be a bug here since an object reference is being logged:
from slimjar.
Related Issues (20)
- VerifyingRelocationHelper - No data available HOT 2
- Download directory gets removed after dependencies are loaded HOT 9
- [Question/Suggestion] Redundant relocated jars HOT 1
- Skip download if already exists HOT 11
- Choose download location for SlimJar's own dependencies HOT 2
- Multi-module issue. HOT 7
- Add exclude feature to "slim" HOT 2
- Unexpected checksum behavior. HOT 1
- Can't inject dependencies HOT 11
- it would be good if you push the sources with javadocs of slimjar artifact to the repository
- sometimes slimjar task stucks HOT 1
- Change default download repo HOT 19
- Project fails to build with Gradle plugin v1.2.2 HOT 2
- Package io.github.slimjar.app.builder does not exist HOT 1
- IllegalArgumentException: URI is not hierarchical
- SlimJar repository HOT 2
- Cannot resolve GSON HOT 11
- Accidental PR HOT 1
- Doesn't support downloading without the Content-Length header HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slimjar.