Logging for HMA
The TIBCO Hawk HMA process creates log files for each MicroAgent, such as Hawk_Process.log
. The HMA process also creates a Hawk_HMA.log
file for MicroAgent-generic errors.
To see console logs on command console, add "-console
" argument as one of the application arguments in the file tibhawkhma.tra
. Otherwise, the logs get logged as Windows Events. If the logging is enabled, the logs appear in the related files.
You control the size and level of detail in HMA log files at the start using the hawkhma.cfg
file or during runtime using the setTraceLevel
() and setTraceParameters
() methods. These standard methods are included for default platform-specific MicroAgents, and can be added when instrumenting an application using the AMI protocol.
Following are some representative lines in an HMA log file for the Services MicroAgent:
INFO 01/15/2013 11:14:39
OPTIONS: Transport: RV
RV Session : Service : 7474 -- Network : ; -- Daemon : tcp:7474
Timeout : 10000
CodePage : 65001
TraceLevel : -1
Logdir : C:/ProgramData/hawkv16/tibco/cfgmgmt/hawk/log --
LogMaxSize : 1024 -- Max Log Files : 5 -- Log Format : default
INFO 01/15/2013 11:14:53 TIBCO Hawk HMA initialization completed successfully.