Command Line and environment variables FAQ

Revision as of 19:00, 31 May 2012 by Stone (Talk | contribs)



Environment Variables

Logging

  • CPM_LOG_FILE_SIZE

This variable defines the maximum size of the stdout (console) log. Use a number + K for kilobytes, M for megabytes and G for gigabytes.

Example:

export CPM_LOG_FILE_SIZE=100K
  • CPM_LOG_FILE_ROTATIONS

This variable defines the number of log files (i.e) name1.log name2.log, etc to use before restarting the count.

Example:

export CPM_LOG_FILE_ROTATIONS=100
  • ASP_STDOUT_LOGFILE (deprecates ASP_CPM_LOGFILE) [version 5.1+]

This variable overrides the log file name. Use either an absolute path (beginning with /) or a path relative to the ASP log directory. The special name "console" will output to the console instead of a file.
Note, setting this variable to "console" is equivalent starting with the command "etc/init.d/asp consolestart".

Example:

export ASP_STDOUT_LOGFILE=/tmp/stdoutlog.txt
export ASP_STDOUT_LOGFILE=stdoutlog.txt
export ASP_STDOUT_LOGFILE=console
  • CL_LOG_CODE_LOCATION_ENABLE

Adds file/line to each log message, so logs can be tracked in the source code

Example:

export CL_LOG_CODE_LOCATION_ENABLE=1
  • CL_LOG_TIME_ENABLE

Adds a timestamp to each log message (default is true)

Example:

export CL_LOG_TIME_ENABLE=0