These are chat archives for TheHolyWaffle/TeamSpeak-3-Java-API

1st
Dec 2017
astrolamb-gaming
@astrolamb-gaming
Dec 01 2017 03:56
Is there a way to get the root channel of a sub-channel?
Roger Baumgartner
@rogermb
Dec 01 2017 07:25
@astrolamb-gaming I think you're looking for Channel(Info)#getParentChannelId
JenkePlays
@JenkePlays_twitter
Dec 01 2017 13:19
Can I set the Output of the API in a Text Document?
Roger Baumgartner
@rogermb
Dec 01 2017 13:22
Yes! Either use a different logging provider, or for a much simpler solution, create your own config file for the bundled SLF4J-Simple logger. You could create a copy of the logging config file we use and then set org.slf4j.simpleLogger.logFile to your desired file name
JenkePlays
@JenkePlays_twitter
Dec 01 2017 13:40
File file = new File("logs/System.log");
try {
System.setOut(new PrintStream(new FileOutputStream(file,true)));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
I have make this but the Problem is it is only in the Text Document and not in the Console and the text Document.
Roger Baumgartner
@rogermb
Dec 01 2017 13:44
Use a better logging implementation, then. Seriously, messing around with System.out will break stuff
Get the API Jar without a bundled logging provider and use log4j2 or logback as the logging implementation
And write your own little config file that defines two appenders: one to the console, the other to a file
JenkePlays
@JenkePlays_twitter
Dec 01 2017 13:48
I have try this: log4j2 but iam too stupid to use it.
Roger Baumgartner
@rogermb
Dec 01 2017 13:49
Read the tutorial, crawl stackoverflow :stuck_out_tongue: