File tree Expand file tree Collapse file tree 6 files changed +128
-0
lines changed Expand file tree Collapse file tree 6 files changed +128
-0
lines changed Original file line number Diff line number Diff line change
1
+ .idea /
2
+ target /
3
+ * .log
4
+ * .iml
5
+
6
+
7
+
Original file line number Diff line number Diff line change
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
+ <modelVersion >4.0.0</modelVersion >
4
+
5
+ <groupId >ijarvis.intelliq</groupId >
6
+ <artifactId >FabricExample</artifactId >
7
+ <version >1.0-SNAPSHOT</version >
8
+ <packaging >jar</packaging >
9
+
10
+ <name >FabricExample</name >
11
+ <url >http://maven.apache.org</url >
12
+
13
+ <properties >
14
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15
+ </properties >
16
+
17
+ <dependencies >
18
+ <dependency >
19
+ <groupId >junit</groupId >
20
+ <artifactId >junit</artifactId >
21
+ <version >4.12</version >
22
+ </dependency >
23
+ <dependency >
24
+ <groupId >log4j</groupId >
25
+ <artifactId >log4j</artifactId >
26
+ <version >1.2.14</version >
27
+ </dependency >
28
+ <dependency >
29
+ <groupId >org.hyperledger.fabric-sdk-java</groupId >
30
+ <artifactId >fabric-sdk-java</artifactId >
31
+ <version >1.0.1</version >
32
+ </dependency >
33
+ </dependencies >
34
+ </project >
Original file line number Diff line number Diff line change
1
+ package ijarvis .intelliq ;
2
+
3
+ /**
4
+ * Hello world!
5
+ *
6
+ */
7
+ public class App
8
+ {
9
+ public static void main ( String [] args )
10
+ {
11
+ System .out .println ( "Hello World!" );
12
+ }
13
+ }
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
3
+ <log4j : configuration xmlns : log4j =" http://jakarta.apache.org/log4j/" >
4
+ <appender name =" STDOUT" class =" org.apache.log4j.ConsoleAppender" >
5
+ <param name =" target" value =" System.out" />
6
+ <param name =" encoding" value =" UTF-8" />
7
+ <layout class =" org.apache.log4j.PatternLayout" >
8
+ <param name =" ConversionPattern" value =" %5p %c{2} - %m%n" />
9
+ </layout >
10
+ </appender >
11
+ <appender name =" FILE" class =" org.apache.log4j.RollingFileAppender" >
12
+ <param name =" file" value =" intelliq-console.log" />
13
+ <param name =" append" value =" true" />
14
+ <param name =" maxFileSize" value =" 500MB" />
15
+ <param name =" maxBackupIndex" value =" 100" />
16
+ <layout class =" org.apache.log4j.PatternLayout" >
17
+ <param name =" ConversionPattern" value =" %d [%t] %-5p %C{6} (%F:%L) - %m%n" />
18
+ </layout >
19
+ </appender >
20
+ <logger name =" org.apache" >
21
+ <level value =" ERROR" />
22
+ </logger >
23
+ <root >
24
+ <level value =" DEBUG" />
25
+ <appender-ref ref =" STDOUT" />
26
+ <appender-ref ref =" FILE" />
27
+ </root >
28
+ </log4j : configuration >
Original file line number Diff line number Diff line change
1
+ package ijarvis .intelliq ;
2
+
3
+
4
+ import org .apache .log4j .Logger ;
5
+ import org .junit .Test ;
6
+
7
+ /**
8
+ * Unit test for simple App.
9
+ */
10
+ public class AppTest {
11
+ private static Logger logger =Logger .getLogger (AppTest .class );
12
+ @ Test
13
+ public void Setup (){
14
+ logger .debug ("Fabric Test Start........" );
15
+
16
+ }
17
+
18
+ }
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
3
+ <log4j : configuration xmlns : log4j =" http://jakarta.apache.org/log4j/" >
4
+ <appender name =" STDOUT" class =" org.apache.log4j.ConsoleAppender" >
5
+ <param name =" target" value =" System.out" />
6
+ <param name =" encoding" value =" UTF-8" />
7
+ <layout class =" org.apache.log4j.PatternLayout" >
8
+ <param name =" ConversionPattern" value =" %5p %c{2} - %m%n" />
9
+ </layout >
10
+ </appender >
11
+ <appender name =" FILE" class =" org.apache.log4j.RollingFileAppender" >
12
+ <param name =" file" value =" intelliq-fabric-console.log" />
13
+ <param name =" append" value =" true" />
14
+ <param name =" maxFileSize" value =" 500MB" />
15
+ <param name =" maxBackupIndex" value =" 100" />
16
+ <layout class =" org.apache.log4j.PatternLayout" >
17
+ <param name =" ConversionPattern" value =" %d [%t] %-5p %C{6} (%F:%L) - %m%n" />
18
+ </layout >
19
+ </appender >
20
+ <logger name =" org.apache" >
21
+ <level value =" ERROR" />
22
+ </logger >
23
+ <root >
24
+ <level value =" DEBUG" />
25
+ <appender-ref ref =" STDOUT" />
26
+ <appender-ref ref =" FILE" />
27
+ </root >
28
+ </log4j : configuration >
You can’t perform that action at this time.
0 commit comments