janusgraph icon indicating copy to clipboard operation
janusgraph copied to clipboard

Exclude log4j.properties in pom.xml

Open huynhtk opened this issue 8 years ago • 3 comments

The janusgraph-core-0.3.0.jar includes log4j.properties which is overriding the existing application's log4j.properties file.

huynhtk avatar Aug 30 '18 01:08 huynhtk

It appears that the log4j.properties has been packaged in janusgraph-core.jar going all the way back to titan-core.jar. It is probably safe to remove from the jar file.

@huynhtk According to the log4j docs on the default initialization procedure, the preferred way to specify the default initialization file is through the log4j.configuration system property. For example, the Gremlin Console uses this flag -Dlog4j.configuration=conf/log4j-console.properties to pull in the properties from the local config file rather than from the jar file.

pluradj avatar Sep 01 '18 17:09 pluradj

Dear,

It also appears in janusgraph-core-0.3.1.jar I totally agree that it would be better to remove from the jar file.

Best TotalForgot

TotalForgot avatar Jul 30 '19 09:07 TotalForgot

Dear

It is also included in janusgraph-0.4.0.jar

And it is crazy that our java projects after declaring dependency on JanusGraph cannot logout properly without overriding another log4j.properties file.

We believe that this file should be removed from the jar, and one will need to provide in extra the proper log4j.properties as his/her expectation when starting the application.

Including this file in jar brings abnormal behaviors, and this is an anti-pattern.

Best Tien Dat

DatPhanTien avatar Aug 13 '19 13:08 DatPhanTien