This documentation is for WSO2 Governance Registry 5.2.0. View documentation for the latest release.
||
Skip to end of metadata
Go to start of metadata
  1. To enable log messages related to lifecycle changes, add the entries below to the <GREG_HOME>/repository/conf/log4j.properties file:

    log4j.logger.org.wso2.carbon.governance.registry.extensions.aspects.utils.StatWriter=DEBUG, CARBON_LCHISTROY
    log4j.additivity.org.wso2.carbon.governance.registry.extensions.aspects.utils.StatWriter=false
    # CARBON_LCHISTROY is set to be a DailyRollingFileAppender using a PatternLayout.
    log4j.appender.CARBON_LCHISTROY=org.wso2.carbon.utils.logging.appenders.CarbonDailyRollingFileAppender
    # Log file will be overridden by the configuration setting in the DB
    # This path should be relative to WSO2 Carbon Home
    log4j.appender.CARBON_LCHISTROY.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon_lchistory${instance.log}.log
    log4j.appender.CARBON_LCHISTROY.Append=true
    log4j.appender.CARBON_LCHISTROY.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
    # ConversionPattern will be overridden by the configuration setting in the DB
    log4j.appender.CARBON_LCHISTROY.layout.ConversionPattern=TID: [%T] [%S] [%d] %P%5p {%c} - %x %m {%c}%n
    log4j.appender.CARBON_LCHISTROY.layout.TenantPattern=%U%@%D [%T] [%S]
    log4j.appender.CARBON_LCHISTROY.threshold=DEBUG
  2. Once the above configuration is added, log messages will be appended to the <GREG_HOME>/repository/logs/wso2carbon_lchistory.log file.
  • No labels