Go to [EphesoftInstallationDirectory]\JavaAppServer\lib\log4j.properties. Make sure to limit the size of catalina.log file and its back up count by writing sample configuration as follows:

log4j.appender.CATALINA=org.apache.log4j.RollingFileAppender

log4j.appender.CATALINA.File=${catalina.base}/logs/catalina.log.

log4j.appender.CATALINA.Append=true

log4j.appender.CATALINA.MaxFileSize=2MB

log4j.appender.CATALINA.MaxBackupIndex = 30

log4j.appender.CATALINA.Encoding=UTF-8

log4j.appender.CATALINA.layout = org.apache.log4j.PatternLayout

log4j.appender.CATALINA.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

Set stdout logging to redirect to the Catalina.log file in the logging section of the EphesoftEnterprise.exe file.

Image
Start Ephesoft server.

The rollover only works when running ephesoft is running as an application. Stdout logs are only written when Ephesoft is running as a Service.

As a service, the work around will overwrite the log file, but no rollover will occur. You will be able to maintain a manageable size file.

As an app, recycled and rolled over files will be created.

Maxfile size will apply to service and app log settings.

In the event that additional logging is needed for a longer duration, you will need to adjust the Catalina log file settings mentioned above.

Was this article helpful to you?

Walter Lee

Comments are closed.