Merge remote-tracking branch 'origin/master'

# Conflicts:
#	mirai-core/src/main/java/net/mamoe/mirai/utils/MiraiLogger.kt
This commit is contained in:
Him188 2019-09-29 21:59:06 +08:00
commit f2ddcb7ec8
3 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package net.mamoe.mirai;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
@ -32,6 +33,10 @@ public class MiraiAPI {
MiraiMain.main(args);
}
public static void setLogger(PrintStream stream){
MiraiServer.getInstance().getLogger().setOutPutStream(stream);
}
public static String getMiraiVersion(){
return MiraiServer.MIRAI_VERSION;
}

View File

@ -13,4 +13,7 @@ public class MiraiConsole {
}
public void log(Object o){
System.out.println(o);
}
}

View File

@ -3,6 +3,8 @@ package net.mamoe.mirai;
import lombok.Getter;
import java.io.PrintStream;
/**
* @author NaturalHG
*/