Changes between Version 19 and Version 20 of db/Qserv/ProtoLog


Ignore:
Timestamp:
08/26/2014 10:48:15 PM (5 years ago)
Author:
salnikov
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • db/Qserv/ProtoLog

    v19 v20  
    127127 
    128128In the absence of an explicit call to one of the configuration macros, !ProtoLog is designed to leverage log4cxx's static initializer, which employs the following algorithm (except from [http://logging.apache.org/log4cxx/usage.html here]): 
    129   1. Set the `configurationOptionStr` string variable to the value of the '''LOG4CXX_CONFIGURATION''' environment variable if set, otherwise the value of the '''log4j.configuration''' or '''LOG4CXX_CONFIGURATION''' environment variable if set, otherwise the first of the following file names which exist in the current working directory, "log4cxx.xml", "log4cxx.properties", "log4j.xml" and "log4j.properties". If `configurationOptionStr` has not been set, then disable logging. 
     129  1. Set the `configurationOptionStr` string variable to the value of the '''LOG4CXX_CONFIGURATION''' environment variable if set, otherwise the value of the '''log4j.configuration''' environment variable if set, otherwise the first of the following file names which exist in the current working directory, "log4cxx.xml", "log4cxx.properties", "log4j.xml" and "log4j.properties". If `configurationOptionStr` has not been set, then disable logging. 
    130130  2. Unless a custom configurator is specified using the '''LOG4CXX_CONFIGURATOR_CLASS''' or '''log4j.configuratorClass''' environment variable, the !PropertyConfigurator will be used to configure log4cxx unless the file name ends with the ".xml" extension, in which case the `DOMConfigurator` will be used. If a custom configurator is specified, the environment variable should contain a fully qualified class name of a class that implements the `Configurator` interface. 
    131131