Project

General

Profile

bug #7085

Updated by Andreas Kohlbecker almost 4 years ago

cdmserver logfiles getting too big, use DailyRollingFileAppender  

 Keeping 7 daily logs should be sufficient since all logs are also preserved in the backupserver  


 Also delete all /var/log/cdmserver/out.log files once this is released. 

 see https://github.com/GoogleCloudPlatform/appengine-java-vm-runtime/issues/231 

 Configuring the logging consistently for the cdm-server and for all instances is complicated by the fact that the instances are running separately from the cdm-server in an own thread with own classloader for each instance. Therefore the root logger configured for the cdm-server is not being used by the instances. 

 **TODO** 

 * Setup the logging for the cdm-server so that the server and all instances are using the same DailyRollingFileAppender and logfile. 
 * remove FileAppenders configured in /opt/cdmserver/.cdmLibrary/log4j.properties of edit-test, edit-prod, edit-int, edit-demo-*, edit-jobber-1 
 * consider using log4j2, see #7821 
 * logfile paths in the cdm-server/src/main/resources/log4j.properties must not be hardcoded and an platform-specific, like `log4j.appender.FILE.File= /var/log/cdmserver/cdmserver_log.out` - fixed by commit:cdm-server|bb431d84

Back