Instructions on how to configure the logging level in Language Weaver Edge to provide more granular information. The default value in the main-config.json file is always "NOTICE". |
When troubleshooting Language Weaver Edge, it might be useful to review the logs generated by its services. This guide shows the steps to configure logging for each service. NOTE: Before making changes to main-config.json please stop SDL MT Edge service and take a backup of main-config.json Log LocationsOn each Language Weaver Edge controller or worker host, a set of log files is automatically generated when the services run. By default, the location of the logs are in the MTE_INSTALL_DIR/logs folder:
Log ConfigurationEach service has a specified log configuration that specifies the following options:
api-gatewayThe Language Weaver Edge master/controller host runs the api-gateway service which provides the REST API endpoint. Its configuration is located in MTE_INSTALL_DIR/conf/main-config.json; a sample of the relevant section to configure the logging settings is shown below:"apiGateway": { "logging": { "maxSizeInMB": 10, "maxBackups": 1, "logFile": "/opt/sdl/ets/logs/api-gateway.log", "logLevel": "NOTICE" }, app-serverThe MTE master/controller host runs the app-server service which provides the HTTP Web UI. Its configuration is located in MTE_INSTALL_DIR/conf/main-config.json; a sample of the relevant section to configure the logging settings is shown below:"appServer": { "logging": { "maxSizeInMB": 10, "maxBackups": 1, "logFile": "/opt/sdl/ets/logs/app-server.log", "logLevel": "NOTICE" } host-agentEach MTE host has a single host-agent service used for internal service orchestration. Its configuration is located in MTE_INSTALL_DIR/conf/main-config.json; a sample of the relevant section to configure the logging settings is shown below:"hostAgent": { "logging": { "maxSizeInMB": 10, "maxBackups": 1, "logFile": "/opt/sdl/ets/logs/host-agent.log", "logLevel": "NOTICE" } ManagerEach MTE host has a single manager service which serves as the parent of all other services. It launches, monitors and restarts the running MTE services. Its configuration is located in MTE_INSTALL_DIR/conf/main-config.json; a sample of the relevant section to configure the logging settings is shown below:"manager": { "logging": { "maxSizeInMB": 10, "maxBackups": 1, "logFile": "/opt/sdl/ets/logs/manager.log", "logLevel": "NOTICE" } job-engine & translation-engineEach MTE host may have 0 or more job-engines (responsible for preprocessing the input) or translation-engines (responsible for translating segments).Its configuration is located in MTE_INSTALL_DIR/conf/[job|translation]-engine.*.json; a sample of the relevant section to configure the logging settings is shown below: (restart the engine after making changes to the configuration file) "etsEngine": { "common": { "log": { "path": "/opt/sd/ets/logs/job-engine.eddb.log", "level": 3, "maxBackups": 1, "maxFileSizeInKB": 10000 } Using a high verbose logging level will cause more log rolling to occur and may result in less data being retained. Adjust the maximum allowed log size, or backups to compensate. translation-engine segment loggingA translation engine can be configured to log individual segments that it translates to a yaml file via the etsEngine.common.yamlLog options.This configuration can be set manually in each MTE_INSTALL_DIR/conf/translation-engine.*.json of interest, a sample of the configuration is shown below. (restart the engine after making changes to the configuration file) "etsEngine": { "common": { "log": { "path": "/opt/sd/ets/logs/translation-engine.80dd.log" }, "yamlLog": { "path": "/opt/sd/ets/logs/translation-engine.80dd.yml", "level": 3 } Description of configuration values:
Enable HTTP request logging for LW Edge 8.5.x and above.
"appServer": { ... "logging": { "maxSizeInMB": 10, "maxBackups": 1, "logFile": "C:\\Program Files\\SDL\\SDL ETS\\logs\\app-server.log", "logLevel": "NOTICE", "httpRequestLogging": { "enabled": true, "logLevel": "NOTICE", "logFile": "C:\\Program Files\\SDL\\SDL ETS\\logs\\app-server.http.log" } } }, "apiGateway": { ... "logging": { "maxSizeInMB": 10, "maxBackups": 1, "logFile": "C:\\Program Files\\SDL\\SDL ETS\\logs\\api-gateway.log", "logLevel": "NOTICE", "httpRequestLogging": { "enabled": true, "logLevel": "NOTICE", "logFile": "C:\\Program Files\\SDL\\SDL ETS\\logs\\api-gateway.http.log" } } }
|