generated from mingliqiye/lib-tem
This commit is contained in:
parent
6056f6fa90
commit
847536080b
@ -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")
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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("启动中...");
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user