Configuring logging for the Quote server

You can configure logging in the Quote Server Docker container by running the set-trace-specification script.

Procedure

Navigate to the /SETUP/bin/ directory.
  1. Navigate to the /SETUP/bin/ directory.
  2. Run the set-trace-specification script with the component or components that you want to be traced.
    ./set-trace-specification com.hcl.commerce.rfq=TRACE

    The following table includes the trace strings that are available specifically for the Quote Server Docker container. In some cases, you might need to enable trace strings in multiple servers to fully troubleshoot a component. For more information, see the MustGather sections in Trace components.

    Component Trace string
    All Quote Logs
    com.hcl.commerce.rfq=TRACE
    Logging Aspect
    com.hcl.commerce.rfq.logging.RFQLoggingAdvice=TRACE
    Exception logs
    com.hcl.commerce.rfq.logging=TRACE:com.hcl.commerce.rfq.exception=TRACE
    Controller logs
    com.hcl.commerce.rfq.logging=TRACE:com.hcl.commerce.rfq.controller=TRACE
    Service logs
    com.hcl.commerce.rfq.logging=TRACE:com.hcl.commerce.rfq.service=TRACE
    Utility logs
    com.hcl.commerce.rfq.logging=TRACE:com.hcl.commerce.rfq.util=TRACE
    Security logs
    com.hcl.commerce.rfq.logging=TRACE:com.hcl.commerce.rfq.security=TRACE
    Note:
    • When configured as trace, all messages are displayed.
    • When configured as info, all messages at levels info through fatal are displayed.
    Note: You can view the quote serve logs as follows:
    1. The following command may be used to view quote logs from outside the Quote Server Docker container:
      docker logs -f commerce_rfq_1
    2. You can also view the trace log file at /SETUP/app/logs/trace.log location .

Results

Logging is now configured. You can now reproduce any issues and collect the associated logs for troubleshooting purposes.