Implementation:Triton inference server Server L0 Logging Test
| Knowledge Sources | |
|---|---|
| Domains | Testing, Logging |
| Last Updated | 2026-02-13 17:00 GMT |
Overview
QA test script for validating logging functionality in the Triton Inference Server.
Description
This test validates the logging subsystem of the Triton Inference Server. It exercises log level configuration (INFO, WARNING, ERROR, VERBOSE), log format options (default and ISO8601 timestamps), log output destinations (console and file), log rate limiting, and the log settings API for dynamic log level changes at runtime. The script starts the server with various logging configurations, triggers operations that produce log messages at different severity levels, and then inspects the log output to verify correct formatting, filtering by level, and presence of expected log entries. It also tests verbose logging at multiple verbosity levels, log file rotation behavior, and ensures that sensitive information is not inadvertently logged.
Usage
Run as part of the Triton QA test suite to validate logging functionality. Typically executed in CI/CD pipelines within the Triton Docker container environment.
Code Reference
Source Location
- Repository: Triton Inference Server
- File: qa/L0_logging/test.sh
- Lines: 1-664
Signature
#!/bin/bash
# Key functions and variables
source ../common/util.sh
SERVER=/opt/tritonserver/bin/tritonserver
SERVER_ARGS="--model-repository=${MODELDIR} --log-verbose=${VERBOSE_LEVEL} --log-info=${LOG_INFO} --log-warning=${LOG_WARNING} --log-error=${LOG_ERROR}"
SERVER_LOG="./logging_test.server.log"
CLIENT_LOG="./logging_test.client.log"
Import
# Sources common utilities
source ../common/util.sh
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| DATADIR | env var | No | Directory containing test data |
| TRITON_DIR | env var | No | Path to Triton server installation |
| MODEL_REPO | directory | Yes | Generated test model repository |
Outputs
| Name | Type | Description |
|---|---|---|
| exit code | int | 0 on success, 1 on failure |
| test logs | files | Server logs and test output in test directory |
Usage Examples
Running the Test
cd qa/L0_logging/
bash test.sh