File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed
src/main/java/org/sakaiproject/ignite Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 834
834
</dependency >
835
835
<dependency >
836
836
<groupId >org.apache.ignite</groupId >
837
- <artifactId >ignite-slf4j </artifactId >
837
+ <artifactId >ignite-log4j2 </artifactId >
838
838
<scope >compile</scope >
839
839
</dependency >
840
840
<dependency >
Original file line number Diff line number Diff line change 278
278
</dependency >
279
279
<dependency >
280
280
<groupId >org.apache.ignite</groupId >
281
- <artifactId >ignite-slf4j </artifactId >
281
+ <artifactId >ignite-log4j2 </artifactId >
282
282
</dependency >
283
283
<dependency >
284
284
<groupId >org.hibernate</groupId >
Original file line number Diff line number Diff line change 17
17
import org .apache .ignite .configuration .IgniteConfiguration ;
18
18
import org .apache .ignite .configuration .TransactionConfiguration ;
19
19
import org .apache .ignite .failure .FailureHandler ;
20
- import org .apache .ignite .logger .slf4j . Slf4jLogger ;
20
+ import org .apache .ignite .logger .log4j2 . Log4J2Logger ;
21
21
import org .apache .ignite .plugin .segmentation .SegmentationPolicy ;
22
22
import org .apache .ignite .spi .checkpoint .cache .CacheCheckpointSpi ;
23
23
import org .apache .ignite .spi .collision .fifoqueue .FifoQueueCollisionSpi ;
@@ -118,7 +118,11 @@ protected IgniteConfiguration createInstance() {
118
118
119
119
igniteConfiguration .setDeploymentMode (DeploymentMode .CONTINUOUS );
120
120
121
- igniteConfiguration .setGridLogger (new Slf4jLogger ());
121
+ try {
122
+ igniteConfiguration .setGridLogger (new Log4J2Logger (serverConfigurationService .getSakaiHomePath () + "custom-ignite-log4j2.xml" ));
123
+ } catch (Exception e ) {
124
+ log .error ("Error trying to set log4j configuration " + e .getMessage ());
125
+ }
122
126
123
127
configureCaches ();
124
128
Original file line number Diff line number Diff line change 453
453
</dependency >
454
454
<dependency >
455
455
<groupId >org.apache.ignite</groupId >
456
- <artifactId >ignite-slf4j </artifactId >
456
+ <artifactId >ignite-log4j2 </artifactId >
457
457
<version >${sakai.ignite.version} </version >
458
458
<scope >provided</scope >
459
459
</dependency >
You can’t perform that action at this time.
0 commit comments