← Back to team overview

dhis2-devs team mailing list archive

Logging for Metadata sync feature

 

Hi Lars,

We are using log4j.properties file instead of 'Log4JLogConfigInitializer'
for metadata sync logging purpose. The FILE parameter of FileAppender in
log4j.properties needs the value of DHIS2_HOME environment variable to save
the metadata sync log in the same folder location as that of the other
logs. We are creating a system property specified in VM options when
starting the DHIS server to get the value of environment variable and
log4j.properties file can use that property.

We would be mentioning this in the documentation as well. Would like to
hear your thoughts regarding this.

Thanks
Aamer.

Follow ups