Setting Log Levels without restarting the BusinessWorks (BW) engine.

Setting Log Levels without restarting the BusinessWorks (BW) engine.

book

Article ID: KB0089662

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description:
============
Normally the BW engine must be restarted after changing the debug tracing properties. Can the trace levels be changed dynamically from within the Admin GUI without restarting BW?


Environment:
==========
All


Resolution:
=========
Yes, you can use the following Hawk method to change the log level.

SetTraceProperty:

Sets a given trace property to a given value. The trace property with name X is the engine property with name Trace.X. For process defs, format of name is "Task..". For example, use property name "Task.*" and value "true" to enable tracing for all activities of all process defs. For errors, use name Trace.Error. For startup tracing, use name Trace.Startup.

If you only want to trace the specified process/ activity, you can use the following property.

Task.&ltprocessDefinition>.&ltactivityName>

Controls whether or not trace messages for a given activity in a process definition are output. Specifying a wildcard for the process definition name indicates you would like to control trace messages for all activities with a given name. Specifying a wildcard for the activity name indicates you would like to control trace messages for all activities in the specified process definition.

ConfigureUserDefinedTracing:

Enables or disables tracing for specified user-defined role(s). Note: Setting for role * applies to all user-defined roles but is overridden by properties that specify specific role names.

ConfigureRole:

Enables or disables tracing for the specified role. You should use the following case sensitive names: warnRole, infoRole, debugRole, errorRole. These are the default trace roles defined in BW. Please invoke the ConfigureRole method with these names instead of Debug, Warn and Error, etc.

Issue/Introduction

Setting Log Levels without restarting the BusinessWorks (BW) engine.