调整日志以及打印日志位置

This commit is contained in:
limqhz
2020-01-31 00:46:57 +08:00
parent 6ddb3b48d8
commit 61f3b6dada
10 changed files with 42 additions and 132 deletions

View File

@@ -78,3 +78,8 @@ face:
account: test@test.com
pwd: 123456
logging:
level:
com:
sv:
mapper: DEBUG

View File

@@ -27,7 +27,7 @@
</encoder>
</appender>
<logger name="org.springframework" level="info" additivity="false">
<logger name= "org.springframework" level="info" additivity="false">
<appender-ref ref="springLogFile" />
</logger>

View File

@@ -7,7 +7,7 @@
<settings>
<setting name="cacheEnabled" value="true" />
<!-- 打印sql日志 -->
<setting name="logImpl" value="STDOUT_LOGGING" />
<setting name="logImpl" value="SLF4J"/>
</settings>
<!--<settings>-->
<!--<setting name="cacheEnabled" value="true"/>-->

View File

@@ -1,94 +0,0 @@
package com;
import Net.PC15.Command.CommandDetial;
import Net.PC15.Command.CommandParameter;
import Net.PC15.Command.INCommand;
import Net.PC15.Command.INCommandResult;
import Net.PC15.Connector.ConnectorAllocator;
import Net.PC15.Connector.ConnectorDetial;
import Net.PC15.Connector.E_ControllerType;
import Net.PC15.Connector.INConnectorEvent;
import Net.PC15.Connector.TCPClient.TCPClientDetial;
import Net.PC15.Data.INData;
import Net.PC15.FC8800.Command.Data.DoorPortDetail;
import Net.PC15.FC8800.Command.Door.CloseDoor;
import Net.PC15.FC8800.Command.Door.OpenDoor;
import Net.PC15.FC8800.Command.Door.Parameter.OpenDoor_Parameter;
import Net.PC15.FC8800.Command.Door.Parameter.RemoteDoor_Parameter;
import Net.PC15.FC8800.Command.FC8800Command;
import Net.PC15.FC8800.FC8800Identity;
public class TestDoor {
public static void main(String args[]) throws InterruptedException {
open();
//System.out.println(connector.AddCommand(closeDoor));
}
public static void open(){
ConnectorAllocator connector = ConnectorAllocator.GetAllocator();
//connector.AddListener(new TestConnect());
TCPClientDetial c = new TCPClientDetial("192.168.1.150", 8000);
connector.GetCommandCount(c);
//connector.CloseForciblyConnect(new TCPClientDetial("192.168.1.150", 8000));
connector.OpenForciblyConnect(c);
CommandDetial detial = new CommandDetial();
detial.Connector = c;
detial.Identity = new FC8800Identity("MC-5824T28085603", "FFFFFFFF", E_ControllerType.FC8900);
OpenDoor_Parameter openDoor_parameter = new OpenDoor_Parameter(detial);
openDoor_parameter.Door.SetDoor(1,1);
OpenDoor openDoor = new OpenDoor(openDoor_parameter);
openDoor.getIsTimeout();
//openDoor.Release();
}
static class TestConnect implements INConnectorEvent {
@Override
public void CommandCompleteEvent(INCommand inCommand, INCommandResult inCommandResult) {
System.out.println("CommandCompleteEvent");
}
@Override
public void CommandProcessEvent(INCommand inCommand) {
System.out.println("CommandProcessEvent");
}
@Override
public void ConnectorErrorEvent(INCommand inCommand, boolean b) {
System.out.println("ConnectorErrorEvent");
}
@Override
public void ConnectorErrorEvent(ConnectorDetial connectorDetial) {
System.out.println("ConnectorErrorEvent");
}
@Override
public void CommandTimeout(INCommand inCommand) {
System.out.println("CommandTimeout");
}
@Override
public void PasswordErrorEvent(INCommand inCommand) {
System.out.println("PasswordErrorEvent");
}
@Override
public void ChecksumErrorEvent(INCommand inCommand) {
System.out.println("ChecksumErrorEvent");
}
@Override
public void WatchEvent(ConnectorDetial connectorDetial, INData inData) {
System.out.println("WatchEvent");
}
}
}

View File

@@ -15,8 +15,8 @@ public class VenueServiceTest {
@Resource
private VenueService venueService;
// @Test
// public void test(){
// System.out.println(venueService.enterVenue(12,3,1));
// }
@Test
public void test(){
// System.out.println(venueService.enterVenue(12,3));
}
}