googleapis / java-logging

Apache License 2.0
43 stars 39 forks source link

structured logging: opt-in enable source location populating #690

Closed minherz closed 2 years ago

minherz commented 3 years ago

Is your feature request related to a problem? Please describe. Populating source location (file name and line number) in Java is an operation that leads to performance penalties. Users should explicitly allow it.

Describe the solution you'd like Provide a configuration to enable populating source location when structured logging is enabled.

minherz commented 3 years ago

Related issues #685, #686, #687, #688, #689, #690, #691

minherz commented 2 years ago

Following the documented behavior the location information will be populated for log entries with the severity DEBUG or lower depending on the auto-population configuration (#689)