mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
Merge remote-tracking branch 'origin/master'
# Conflicts: # mirai-core/src/main/java/net/mamoe/mirai/utils/MiraiLogger.kt
This commit is contained in:
commit
f2ddcb7ec8
@ -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;
|
||||
}
|
||||
|
@ -13,4 +13,7 @@ public class MiraiConsole {
|
||||
}
|
||||
|
||||
|
||||
public void log(Object o){
|
||||
System.out.println(o);
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,8 @@ package net.mamoe.mirai;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
import java.io.PrintStream;
|
||||
|
||||
/**
|
||||
* @author NaturalHG
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user