Package com.linkedin.venice.utils
Class LogContext.Builder
java.lang.Object
com.linkedin.venice.utils.LogContext.Builder
- Enclosing class:
- LogContext
Builder for
LogContext
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newLogContext
using the provided values.setComponentName
(String componentName) Sets the component name to be included in the LogContext.setRegionName
(String regionName) Sets the region name to be included in the LogContext.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setRegionName
Sets the region name to be included in the LogContext.- Parameters:
regionName
- The name of the region.- Returns:
- This builder instance.
-
setComponentName
Sets the component name to be included in the LogContext.- Parameters:
componentName
- The name of the component.- Returns:
- This builder instance.
-
build
Builds a newLogContext
using the provided values.- Returns:
- A new LogContext instance.
-