Logging per line and file overrides. Location of file may be followed by :[line number] to specify 1 exact log in that file.
Locations are easy to retrieve from the logs: tracing::Span writes the "component" tag with the location. For example: 'component: "DoParse ( taxi/uservices/services/my_service/src/parser.cpp:128 )"'.
Note that if you are taking the location from source editor and you have multiline logging macro:
then the line number depends on the compiler (can be 304 on clang, 300 on GCC).
Schema:
#299 #300 LOG_INFO( #301 "Do not send '{}', instead send the '{}' command", #302 incoming, #303 correct_data #304 ); #305 ```
then the line number depends on the compiler (can be 304 on clang, 300 on GCC). schema: type: object additionalProperties: false required:
"force-enabled-level": {
"taxi/uservices/services/my_service/src/grpc": "WARNING",
"taxi/uservices/services/my_service/src/server/server.cpp": "DEBUG",
"taxi/uservices/services/my_service/src/parser.cpp:128": "TRACE"
}
additionalProperties: type: string force-disabled-level: type: object description: | Locations where logs of the SPECIFIED LEVEL and LOWER should be FORCEFULLY DISABLED. For example, to disable ERROR and lower logs in "taxi/uservices/services/my_service/src/grpc", INFO and lower logs in "taxi/uservices/services/my_service/src/server/server.cpp", and a specific TRACE log (line 128) in "taxi/uservices/services/my_service/src/parser.cpp": "force-disabled-level": {
"taxi/uservices/services/my_service/src/grpc": "ERROR",
"taxi/uservices/services/my_service/src/server/server.cpp": "INFO",
"taxi/uservices/services/my_service/src/parser.cpp:128": "TRACE"
}
additionalProperties: type: string```
For a full list of dynamic configs see Dynamic config schemas list