Difference between revisions of "Command Line and environment variables FAQ"

(Logging)
(Logging)
Line 6: Line 6:
 
This variable defines the maximum size of the stdout (console) log.  Use a number + K for kilobytes, M for megabytes and G for gigabytes.
 
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:
 
Example:
 +
<pre>
 
export CPM_LOG_FILE_SIZE=100K
 
export CPM_LOG_FILE_SIZE=100K
 +
</pre>
  
 
* CPM_LOG_FILE_ROTATIONS
 
* 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.
 
This variable defines the number of log files (i.e) name1.log name2.log, etc to use before restarting the count.
 
Example:
 
Example:
 +
<pre>
 
export CPM_LOG_FILE_ROTATIONS=100
 
export CPM_LOG_FILE_ROTATIONS=100
 +
</pre>
  
 
* ASP_STDOUT_LOGFILE (deprecates ASP_CPM_LOGFILE)  [version 5.1+]
 
* ASP_STDOUT_LOGFILE (deprecates ASP_CPM_LOGFILE)  [version 5.1+]
Line 17: Line 21:
 
The special name "console" will output to the console instead of a file.  Note in this case start asp using "etc/init.d/asp consolestart".
 
The special name "console" will output to the console instead of a file.  Note in this case start asp using "etc/init.d/asp consolestart".
 
Example:
 
Example:
 +
<pre>
 
export ASP_STDOUT_LOGFILE=/tmp/stdoutlog.txt
 
export ASP_STDOUT_LOGFILE=/tmp/stdoutlog.txt
 
export ASP_STDOUT_LOGFILE=stdoutlog.txt
 
export ASP_STDOUT_LOGFILE=stdoutlog.txt
 
export ASP_STDOUT_LOGFILE=console
 
export ASP_STDOUT_LOGFILE=console
 +
</pre>

Revision as of 17:48, 1 July 2011

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 in this case start asp using "etc/init.d/asp consolestart". Example:

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