aternosorg / mclogs-java Goto Github PK
View Code? Open in Web Editor NEWJava library for mclogs
License: MIT License
Java library for mclogs
License: MIT License
Hello there,
got a question about which License this repo is on. Since The mc logs api class is something I would like to use in our repo ( https://github.com/GeyserMC/Geyser) to make html requests I'm I allowed to do so ?
Thanks in forward,
Jens
Hi, I wanted to include such an upload feature for ages now and I stumbled upon this beautiful library. But it isn't published anywhere (please do this, it's really, really simple) so I would have to copy the files.
My question is, how do I do that legally? My project is AGPL, so should I add MIT license headers or what do I have to add in order to be compliant?
Kind regards and please answer soon,
Sky
java.lang.NullPointerException: Cannot invoke "gs.mclo.api.MclogsClient.getInstance()" because "this.client" is null
at gs.mclo.api.response.UploadLogResponse.getUrl(UploadLogResponse.java:34)
at me.indian.bds.mclog.McLog.sendLog(McLog.java:46)
at me.indian.bds.BDSAutoEnable.init(BDSAutoEnable.java:125)
at me.indian.bds.BDSAutoEnable.<init>(BDSAutoEnable.java:97)
at me.indian.bds.BDSAutoEnable.main(BDSAutoEnable.java:101)
public class McLog {
private final BDSAutoEnable bdsAutoEnable;
private final Logger logger;
private final Gson gson;
private final MclogsClient mclogsClient;
public McLog(final BDSAutoEnable bdsAutoEnable) {
this.bdsAutoEnable = bdsAutoEnable;
this.logger = bdsAutoEnable.getLogger();
this.gson = GsonUtil.getGson();
this.mclogsClient = new MclogsClient("BDS-Auto-Enable", bdsAutoEnable.getProjectVersion(), bdsAutoEnable.getVersionManager().getLoadedVersion());
System.out.println(mclogsClient);
System.out.println(mclogsClient.getInstance());
}
public void sendLog() {
try {
final Log log = new Log(this.logger.getLogFile().toPath());
final CompletableFuture<UploadLogResponse> future = this.mclogsClient.uploadLog(log);
final UploadLogResponse response = future.get();
System.out.println(response.getUrl());
} catch (final Exception exception) {
exception.printStackTrace();
}
}
}
Just check this
https://mvnrepository.com/artifact/gs.mclo/api
I think it would be useful to have this in a Maven repo so it's not necessary to add this as a git submodule if you want to use it
The API does not respond when logs over 8MB get uploaded, could you add some kind of error catching to that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.