bwagent Logging

The bwagent creates a log file called bwagent.log that is saved in the BW_HOME/logs folder.

The default log is configured as a daily roller appender and is automatically compressed as a ZIP file. The default logging level is INFO. The logback configuration file is BW_HOME/bin/bwagent-logback.xml. When the bwagent is started, the bwagent.log log file is created. If the bwagent could not be started, informational messages will be displayed to help track down the cause. For the default logging level, the bwagent displays messages similar to the following.
C:\work\BW-v25\bw\6.6\bin>bwagent
TIBCO ActiveMatrix BusinessWorks version 6.6.0, build V25, 2019-07-09
13:45:39.405 WARN  [main] org.eclipse.jetty.server.Server - ErrorPageMapper not supported for Server level Error Handling
TIBCO-BW-AGENT-300002: BusinessWorks Agent started successfully.

To view and change the logging level for bwagent, follow these steps. The bwagent does not have to be restarted for the logging level change to take effect.

Procedure

  1. Open BW_HOME/bin/bwagent-logback.xml file in a text editor. Change the ROOT level setting at the end of the file as needed.
    <root level="INFO">
        <appender-ref ref="STDOUT" />
        <appender-ref ref="FILE" />
    
  2. Optional. By default, the Jersey and Jetty based loggers have the WARN log level. To modify the log level, update the following loggers:
    <logger name="org.eclipse.jetty" level="DEBUG" additivity="false">
        <appender-ref ref="STDOUT" />
        <appender-ref ref="FILE" />
      </logger>
      
      <logger name="org.glassfish.jersey" level="DEBUG" additivity="false">
        <appender-ref ref="STDOUT" />
        <appender-ref ref="FILE" />
      </logger>
  3. To get the bwagent log file at the bwadmin console, open a terminal and start bwadmin if it is not already started. Type: getlogfile agent
    The log file contains messages for each activity. The following illustration displays messages bwagent startup messages.

    You can also view the log file in a text editor.