Skip to main content
Skip table of contents

Method Server

Set up logging for the method servers.

Log messages can be sent to several appenders (output channels). The appenders actually output the messages.

Validity

This procedure applies to Windchill® version 12.0.2.x and higher.

For earlier versions, the description in version 2.22 of the IFConneX documentation applies, see (2.22-en) MethodServer - IFConneX Documentation - Confluence (atlassian.net).

Procedure

1. Required To modify the logging settings, open the following file:

${WT_HOME}/codebase/WEB-INF/log4jMethodServer.properties.

2. Required Now define an additional ERROR level logger for the classes of the de.innoface Java packages by adding the following lines to the existing file:

logger.innoface.name=de.innoface
logger.innoface.additivity=false
logger.innoface.level=ERROR
logger.innoface.appenderRef.methodServerLogFile.ref=methodServerLogFile

3. Optional. In addition, a second log file containing only Innoface messages can be output on a project-specific basis. To do this, you must add the following lines to the configuration file:

appender.methodServerInnoLogFile.type = RollingFile
appender.methodServerInnoLogFile.name = methodServerInnoLogFile
appender.methodServerInnoLogFile.createOnDemand = true
appender.methodServerInnoLogFile.fileName = ${sys:wt.logs.dir}/${sys:wt.manager.serviceName}-${sys:wt.jvm.startTime.formatted.short}-${sys:wt.jvm.id}-InnofaceLog4j.log
appender.methodServerInnoLogFile.filePattern = ${sys:wt.logs.dir}/${sys:wt.manager.serviceName}-${sys:wt.jvm.startTime.formatted.short}-${sys:wt.jvm.id}-InnofaceLog4j.log.%d{yyyy-MM-dd}_%i
appender.methodServerInnoLogFile.layout.type = PatternLayout
appender.methodServerInnoLogFile.layout.alwaysWriteExceptions = false
appender.methodServerInnoLogFile.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS}{${timeZone}} %-5p [%t] %c:%L %X{user} - %m%ex%n
appender.methodServerInnoLogFile.policies.type = Policies
appender.methodServerInnoLogFile.policies.midnight.type = SizeBasedMidnightTriggeringPolicy
appender.methodServerInnoLogFile.policies.midnight.size=9MB
appender.methodServerInnoLogFile.strategy.type = DefaultRolloverStrategy
appender.methodServerInnoLogFile.strategy.max = 2147483647

logger.innoface.name=de.innoface
logger.innoface.additivity=false
logger.innoface.level=ERROR
logger.innoface.appenderRef.methodServerInnoLogFile.ref=methodServerInnoLogFile

logger.innoface2.name=de.innoface.p600xxx
logger.innoface2.additivity=false
logger.innoface2.level=INFO
logger.innoface2.appenderRef.methodServerInnoLogFile.ref=methodServerInnoLogFile

The project number must be added to the following line logger.innoface2.name=en.innoface.p600xxx.

Result

Error messages are logged in the existing output file. In addition, project-specific messages can be logged in a separate file.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.