Platform Framework
R24 AMR | Min(s) read

Defining a Logger Context

This section explains you how to define a specific logger context to differentiate the logs from the different tenants in a multi-tenant environment.

For debugging, you can define your own context by using the property below.

temenos.log.context=<YOUR_CONTEXT_NAME>

You will be able to find your logs under:

  • For TAFJ logs: for TAFJ logs <TAFJ_HOME>/log/<YOUR_CONTEXT_NAME> :
  • For Temenos Transact logs: <TAFJ_HOME>/log_T24/<YOUR_CONTEXT_NAME>
  • You can use the above method to override the log directory.

When you use your own context, you will also generate a dedicated file (TAFJTrace.<YOUR_CONTEXT_NAME>.properties) to configure your appenders. Similar to log directories properties, you need to set the TAFJTrace.<YOUR_CONTEXT_NAME>.properties file at TAFJ start up through environment variables or JVM arguments. For more information, see Customising Log Folders.

Setting up Logger Context through JVM Argument (Appserver Mode)

Set the following property:

-Dtemenos.log.context=customLogContext

Setting up Logger Context through Environment Variables (Standalone Mode tafj shell)

For Linux, set the following property:

export temenos_log_context=customLogContext

For windows, set the following property:

set temenos.log.context=customLogContext

To revert this setting in tafj shell, set the property to an empty value as shown below.

For Linux - export temenos_log_context=

For Windows - set temenos.log.context=

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 27, 2024 5:03:19 PM IST