MCPcopy Create free account
hub / github.com/appium/appium / loadSecureValuesPreprocessingRules

Method loadSecureValuesPreprocessingRules

packages/logger/lib/log.ts:262–270  ·  view source on GitHub ↗

* Loads the JSON file containing secure values replacement rules. * This might be necessary to hide sensitive values that may possibly * appear in Appium logs. * Each call to this method replaces the previously loaded rules if any existed. * * @param {string|string[]|LogFiltersConfig}

(
    rulesJsonPath: string | string[] | LogFiltersConfig,
  )

Source from the content-addressed store, hash-verified

260 * @returns {Promise<PreprocessingRulesLoadResult>}
261 */
262 async loadSecureValuesPreprocessingRules(
263 rulesJsonPath: string | string[] | LogFiltersConfig,
264 ): Promise<PreprocessingRulesLoadResult> {
265 const issues = await this._secureValuesPreprocessor.loadRules(rulesJsonPath);
266 return {
267 issues,
268 rules: structuredClone(this._secureValuesPreprocessor.rules),
269 };
270 }
271
272 private useColor(stream: Writable | null): boolean {
273 // by default, decide based on tty-ness.

Callers

nothing calls this directly

Calls 1

loadRulesMethod · 0.80

Tested by

no test coverage detected