Enabling/Changing logging roles (info/debug/warn) dynamically for a deployed application of TIBCO ActiveMatrix Adapter for Files (Unix/Win).

Enabling/Changing logging roles (info/debug/warn) dynamically for a deployed application of TIBCO ActiveMatrix Adapter for Files (Unix/Win).

book

Article ID: KB0089174

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows -
Not Applicable -

Description

Description:
A TIBCO ActiveMatrix Adapter for Files (Unix/Win) application is deployed in TIBCO ActiveMatrix Administrator. If you encounter any issue in that application, or you want to change the logging settings to get more detailed logs dynamically without making changes in the code or redeploying the application,  you can:

1). Use the Hawk microagent (activateTraceRole()).
2). Use the Administrator option 'Configure Tracing'.

Issue/Introduction

Enabling/Changing logging roles (info/debug/warn) dynamically for a deployed application of TIBCO ActiveMatrix Adapter for Files (Unix/Win).

Resolution

Use any of the following methods to dynamically enable/change logging roles (info/debug/warn) for the deployed application.

1). Using TIBCO Hawk microagent (activateTraceRole())

Go to the Hawk display, right click on Agent and select 'get microagent'.

You will see TIBCO ActiveMatrix Adapter for Files (Unix/Win) (FA) service (if it is running and Hawk is enabled for FA service).

Select FA service. Select 'microagent(activateTraceRole)'. Configure the parameters and then invoke it.

FA will now log all configured log roles.

2). Using the TIBCO ActiveMatrix Administrator option, configure Tracing.

In the Admin GUI, go to FA 'Service Instance'.\

View Service Instance: FileAdapterConfiguration> Tracing > Configure Tracing  >set roles (check/uncheck log roles) >save

FA will now log all configured log roles.

Additional Information

TIBCO ActiveMatrix Adapter for Files for Unix/Win > Configuration and Deployment >Chapter 6  Monitoring the Adapter Using TIBCO Hawk >Invoking Microagent Methods