no message
Some checks failed
Gitea Actions Build / Build (push) Failing after 46s

This commit is contained in:
Armamem0t 2025-07-06 00:09:36 +08:00
parent 6056f6fa90
commit 847536080b
Signed by: minglipro
GPG Key ID: 5F355A77B22AA93B
7 changed files with 13 additions and 7 deletions

View File

@ -41,7 +41,7 @@ dependencies {
implementation("com.mingliqiye:network-endpoint:1.0.2")
implementation("com.mingliqiye:string-utilts:1.0.4")
implementation("com.mingliqiye:socket-utilts:1.0.6")
implementation("org.apache.logging.log4j:log4j-core:2.12.4")
implementation("org.apache.logging.log4j:log4j-core:2.25.0")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.19.1")
}

View File

@ -1,5 +1,5 @@
GROUPSID=com.mingliqiye
ARTIFACTID=tcp-proxy
VERSIONS=0.1
VERSIONS=0.2
MAINCLASS=com.mingliqiye.tcp.proxy.Main
JDKVERSIONS=1.8

View File

@ -9,7 +9,9 @@ import org.apache.logging.log4j.Logger;
public class Main {
private static final Logger log = LogManager.getLogger(Main.class);
private static final Logger log = LogManager.getLogger(
Main.class.getName()
);
public static void main(String[] args) {
log.info("启动中...");

View File

@ -7,7 +7,7 @@ import org.apache.logging.log4j.Logger;
public class Proxy {
private static Logger log = LogManager.getLogger(Proxy.class);
private static Logger log = LogManager.getLogger(Proxy.class.getName());
private final TcpSocketServer tcpSocketServer;
Proxy(NetworkEndpoint endpoint, NetworkEndpoint remoteEndpoint) {

View File

@ -14,7 +14,9 @@ import org.apache.logging.log4j.Logger;
public class ProxyClient extends Thread implements Closeable {
private static Logger log = LogManager.getLogger(ProxyClient.class);
private static Logger log = LogManager.getLogger(
ProxyClient.class.getName()
);
private final String id;

View File

@ -20,7 +20,9 @@ public class ServerEvent extends TcpServerImplementation {
*/
private final Map<String, ProxyClient> clientMap =
new ConcurrentHashMap<>();
private static Logger log = LogManager.getLogger(Proxy.class);
private static Logger log = LogManager.getLogger(
ServerEvent.class.getName()
);
public ServerEvent(
NetworkEndpoint endpoint,

View File

@ -4,7 +4,7 @@ Appenders:
name: CONSOLE #Appender命名
target: SYSTEM_OUT
PatternLayout:
pattern: "%style{%d{yyyy-MM-dd HH:mm:ss,SSS}}{bright,magenta} [%highlight{%p}{FATAL=white, ERROR=red, WARN=yellow, INFO=green, DEBUG=cyan, TRACE=blue}] [%style{%t}{bright,yellow}/%style{%c{1}}{bright,cyan}] -- %style{%m}{#EEDFCC}%n" #输出日志的格式
pattern: "%style{%d{yyyy-MM-dd HH:mm:ss,SSS}}{bright,magenta} [%highlight{%p}{FATAL=white, ERROR=red, WARN=yellow, INFO=green, DEBUG=cyan, TRACE=blue}] [%style{%t}{bright,yellow}/%style{%c{1}}{bright,cyan}] -- %style{%m}{#EEDFCC} %n" #输出日志的格式
disableAnsi: "${env:DISABLECOLOR:-false}"
RollingFile:
- name: FILE