Consultor Eletrônico



Kbase P114988: How to specify the file size of log files?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   4/16/2009
Status: Verified

GOAL:

How to specify the file size of log files?

GOAL:

What is startup parameter -logthreshold?

GOAL:

Is there a way to specify a file size limit for AppServer log files?

FACT(s) (Environment):

OpenEdge 10.x
All Supported Operating Systems

FIX:

Use log threshold (-logthreshold) to specify the file size of log files in bytes. When the current log file becomes equal or greater than the specified, OpenEdge renames and saves the log file and creates a new log file. The -logthreshold parameter can be set in the ubroker.properties file that is typically located in $DLC/properties or %DLC%\properties depending upon your platform.

Valid values are:
? 0 ? This means there is no limit other than what the operating system imposes. Specify 0 to ignore the Number of Log Files to Keep (-numlogfiles) startup parameter setting. This is the default behavior.
? Between 500,000 and 2,147,483,647 ? Values are in bytes (one byte typically holds one character). You can specify a file size up to 2GB, inclusive, but not lower than 500,000. If you specify a number lower than 500,000, a run-time error occurs and the OpenEdge process terminates.
OpenEdge names log files based on a sequence number using the following format: <filename>.999999.<extension>
For example, if you specify a log file named my.log, OpenEdge renames the log file to my.000001.log before creating a new log.