Specify log and email settings

To receive error notifications, edit email and host details and activate the appender in the log4j.xml file.

  1. In the CCF Explorer, right-click a connector landscape and select Edit CCF log settings.
  2. In the log4j.xml file, specify the email addresses of the users to be notified in case of errors and conflicts, the SMTP host, log level and other related details. Here's an example:
          <appender name="SMTPAppender" class="org.apache.log4j.net.SMTPAppender"> 
          <param name="Threshold" value="ERROR"/> 
          <param name="To" value="user1@mycompany.net"/>
          <param name="From" value="user2@mycompany.net"/>
          <param name="SMTPHost" value="abc-exchmb.abc.mycompany.net"/>
          <param name="BufferSize" value="100"/>
          <param name="Subject" value="CCF Error Notification"/>
          <layout class="org.apache.log4j.PatternLayout"> 
          <param name="ConversionPattern" value="%-5p %d{ISO8601} - %m%n"/> 
          </layout> 
          </appender>
        
  3. In order to use your configuration, activate the appender.
    Note: By default, the appender is not activated.
    In log4j.xml, change
          <category name="com.collabnet" additivity="false">
          <level value="info"/>
          <appender-ref ref="console" />
          <appender-ref ref="R" />
          <!--		<appender-ref ref="ErrorNotifier" />-->
          </category>
        
    to
      
          <category name="com.collabnet" additivity="false">
          <level value="info"/>
          <appender-ref ref="console" />
          <appender-ref ref="R" />
          <appender-ref ref="ErrorNotifier" />
          </category>