Portability Libraries  2015.2.0.0
Common Methods and Objects for Platform Independance.
Report and Error Logging
See also
SoftwareAndServices::Library::Common::Log

Report + error logging.

Logging can go to a:

  1. SQL Database.
    1. Net Connection (BAM)
  2. File

As libSaSCommon sits below -lSQL, this is the base class. The SQLlog class is used for (1). This class is used for (3).

As libSaSCommon sits below -lBAM, this is the base class. The BAMlog class is used for (2). This class is used for (3).

Log location path environmental/configuration variables:

  • BAM_LOG_METHOD (SQL,BAM,FILE)
  • BAM_LOG_HOSTNAME
  • BAM_LOG_DATABASE
  • BAM_LOG_FILE
  • BAM_LOG_PORT

Defaults if not set:

  • BAM_LOG_METHOD SQL
  • BAM_LOG_HOSTNAME localhost
  • BAM_LOG_DATABASE BAM_LOG
  • BAM_LOG_FILE /var/bam/log
  • BAM_LOG_PORT 1958

If BAM_LOG_HOSTNAME != NULL, and != localhost; then BAM_LOG_METHOD is BAM.

If BAM_LOG_HOSTNAME != NULL, and != localhost, and BAM is DOWN; then BAM_LOG_METHOD is FILE.

If BAM_LOG_HOSTNAME != NULL, and == localhost, then BAM_LOG_METHOD is SQL.

If BAM_LOG_HOSTNAME != NULL, and == localhost, and SQL is DOWN; then BAM_LOG_METHOD is FILE.

If BAM_LOG_METHOD == SQL, and BAM_LOG_DATABASE == NULL; then BAM_LOG_DATABASE is BAM_LOG

If BAM_LOG_METHOD == FILE, and BAM_LOG_FILE == NULL

If BAM_LOG_PORT == NULL, BAM_LOG_PORT = 1958

CAUTION: When changing values, be sure to use them in the intended order. They change as SOON as 'commitChanges()' is called.