Class LogScrubber
- java.lang.Object
-
- com.google.ads.googleads.lib.logging.scrub.LogScrubber
-
public class LogScrubber extends java.lang.ObjectImplements log scrubbing, e.g. for removing PII.WARNING: THIS CLASS IS HIGHLY PERFORMANCE SENSITIVE
Every RPC calls this class at least twice (once each for request + response). Be extremely careful not to increase latency. This class is an exception to the "premature optimization is the root of all evil" rule-of-thumb; we should be proactive about optimizing performance here.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMASK_PATTERN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectedit(java.lang.Object input)Scrubs a given input.static LogScrubbergetInstance()
-
-
-
Field Detail
-
MASK_PATTERN
public static final java.lang.String MASK_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static LogScrubber getInstance()
-
edit
public java.lang.Object edit(java.lang.Object input)
Scrubs a given input. Only supports Message instances, all other objects are returned unmodified.
-
-