# The logging configuration for Adapter ## Adapter root Level configurations logfile = "logs/adapter.log" # This file will be created inside adapter container. logLevel = "INFO" # LogLevels can be "DEBG", "FATL", "ERRO", "WARN", "INFO", "PANC" LogFormat = "TEXT" # Values can be "JSON", "TEXT" [rotation] MaxSize = 10 # In MegaBytes (MB) MaxBackups = 3 MaxAge = 2 # In days Compress = true ## Adapter package Level configurations [[pkg]] name = "github.com/wso2/product-microgateway/adapter/internal/adapter" logLevel = "INFO" # LogLevels can be "DEBG", "FATL", "ERRO", "WARN", "INFO", "PANC" [[pkg]] name = "github.com/wso2/product-microgateway/adapter/internal/oasparser" logLevel = "INFO" # The logging configuration for Router [accessLogs] enable = false logfile = "/tmp/envoy.access.log" # This file will be created inside router container. format = "[%START_TIME%] '%REQ(:METHOD)% %DYNAMIC_METADATA(envoy.filters.http.ext_authz:originalPath)% %REQ(:PATH)% %PROTOCOL%' %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% '%REQ(X-FORWARDED-FOR)%' '%REQ(USER-AGENT)%' '%REQ(X-REQUEST-ID)%' '%REQ(:AUTHORITY)%' '%UPSTREAM_HOST%'\n" [wireLogs] enable = false include = ["Headers", "Body", "Trailers"]