Table of Contents

Search

  1. Preface
  2. Part 1: Introduction
  3. Part 2: Samples and Examples
  4. Part 3: Tools and Utilities
  5. Part 4: SDK Resources

Step 4. Configuring the Logging Settings

Step 4. Configuring the Logging Settings

Configure logging for the configuration automation tools in the automation log properties file,
log4j.properties
. You configure logging to be able to troubleshoot configuration issues.
  1. Copy the
    log4j.properties
    file packaged in
    MDMAutomation.jar
    , which is in the
    MDMAutomation.zip
    file.
    The
    MDMAutomation.zip
    file is in the following directory:
    On UNIX.
    <Resource Kit installation directory>/automation/Misc_Automation
    On Windows.
    <Resource Kit installation directory>\automation\Misc_Automation
  2. Open the
    log4j.properties
    file from the location to which you copied the file.
  3. To set the log level category in the
    rootLogger
    parameter.
    The following table describes the log level categories:
    Log Level Category
    Description
    INFO
    Provides information about the success or failure of a configuration automation process. Set to INFO to get the success and failure indication. Default is INFO.
    DEBUG
    Provides detailed information for debugging a configuration automation process. It provides information such as the EJB that is called, connection details, and the names of temporary files.
    Set to DEBUG for the most detailed logging.
    WARNING
    Provides information about the success or failure of a configuration automation process including any related warnings. You can usually ignore warnings.
    ERROR
    Provides information about any errors that might cause the configuration automation process to fail. Set to ERROR to get the success and failure indication along with any reasons for failure.
    FATAL
    Provides information about errors in command usage that fail to run the configuration automation process. Set to FATAL to capture errors at the command usage level.
  4. Edit the values for the log file properties.
    The following table describes the log file properties:
    Property Name
    Description
    File
    Name of the log file. Default is
    MDMAutomation.log
    .
    MaxFileSize
    Maximum size of the log file after which the MDM Hub performs a log rolling procedure to archive the existing log information. The log file rolling prevents the MDM Hub from overwriting log files with new information. Default is 10 MB.
    MaxBackupIndex
    The number of times you want the log files to roll. Default is
    5
    .
  5. Save and close the
    log4j.properties
    file.
  6. Replace the
    log4j.properties
    file in
    MDMAutomation.jar
    .

0 COMMENTS

We’d like to hear from you!