Active Directory Connector Log Rotation

Active Directory Connector Log Rotation
imgc10-in-progress
The Active Directory connector supports Log Rotation.
Default Behavior:
The Active Directory endpoint logs are written to
<Endpoint_Name>.log
file. When the log file size exceeds
100
Mega Bytes, a new log file is created to which the logs are written.
For example, if
AD_Finance.log
file exceeds 100 Mega Bytes, a new log file
AD_Finance-20190404-2230.log
is created.
At a time, the system retains 10 log files in the ADS folder.
Customization:
You can modify the maximum log file size and maximum files to be retained as follows:
  1. Navigate to
    <C++ Connector Server_Installed_DIR>/data/ads/.
  2. Create the
    <Endpoint_Name>
    .
    logconfig
    file.
  3. Add the following text to the
    <Endpoint_Name>
    .
    logconfig
    file.
    ##############################################################################
    #By default ADS endpoint log is written to <endpointName>.log file
    #with default values of maxFileSize=100 and maxFiles=10.
    #This means it will rotate <endpointName>.log with maximum file size of 100 MB
    #and retain 10 files in the form <endpointName-yyyymmdd-hhmm>.log
    #
    #Modify and uncomment below to alter the default behaviour
    ##############################################################################
    #size in MegaBytes
    #maxFileSize=100
    #//Number of max backlog files to retain <endpointName-yyyymmdd-hhmm>.log
    #maxFiles=10
  4. Uncomment and modify the values of
    maxFiles
    and
    maxFileSize
    as desired.
    For example:
    ##############################################################################
    #By default ADS endpoint log is written to <endpointName>.log file
    #with default values of maxFileSize=100 and maxFiles=10.
    #This means it will rotate <endpointName>.log with maximum file size of 100 MB
    #and retain 10 files in the form <endpointName-yyyymmdd-hhmm>.log
    #
    #Modify and uncomment below to alter the default behaviour
    ##############################################################################
    #size in MegaBytes
    maxFileSize=200
    #//Number of max backlog files to retain <endpointName-yyyymmdd-hhmm>.log
    maxFiles=20
  5. Restart the C++ Connector Server.