-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.bat
28 lines (22 loc) · 962 Bytes
/
client.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
REM This script will add logback jars to your classpath.
set LB_HOME=target
REM echo %LB_HOME%
set LB_VERSION=1.2.3
set API_VERSION=1.7.25
set JEDIS_VERSION=3.1.0
set POOL_VERSION=pool2-2.6.2
set CLASSPATH=%LB_HOME%/logback-classic-%LB_VERSION%.jar
set CLASSPATH=%CLASSPATH%;%LB_HOME%/logback-core-%LB_VERSION%.jar
REM set CLASSPATH=%CLASSPATH%;%LB_HOME%/logback-examples-%LB_VERSION%.jar
set CLASSPATH=%CLASSPATH%;target/classes
del /f target\classes\logback.xml
set CLASSPATH=%CLASSPATH%;%LB_HOME%/slf4j-api-%API_VERSION%.jar
set CLASSPATH=%CLASSPATH%;%LB_HOME%/jedis-%JEDIS_VERSION%.jar
set CLASSPATH=%CLASSPATH%;%LB_HOME%/commons-%POOL_VERSION%.jar
echo %CLASSPATH%
REM log event to server:6000
REM java chapters.appenders.socket.SocketClient1 localhost 6000
REM SOCKET: log event to server:6000, SERVERSOCKET: log listen on 4560
REM java chapters.appenders.socket.SocketClient2 client.xml
java com.xlongwei.logserver.SocketClient2 client.xml