MCPcopy Create free account
hub / github.com/dotintent/react-native-ble-plx / setLogLevel

Method setLogLevel

src/BleManager.js:212–214  ·  view source on GitHub ↗

* Sets new log level for native module's logging mechanism. * @param {LogLevel} logLevel New log level to be set. * @returns {Promise } Current log level.

(logLevel: $Keys<typeof LogLevel>)

Source from the content-addressed store, hash-verified

210 * @returns {Promise<LogLevel>} Current log level.
211 */
212 setLogLevel(logLevel: $Keys<typeof LogLevel>): Promise<$Keys<typeof LogLevel> | void> {
213 return this._callPromise(BleModule.setLogLevel(logLevel))
214 }
215
216 /**
217 * Get current log level for native module's logging mechanism.

Callers

nothing calls this directly

Calls 2

_callPromiseMethod · 0.95
setLogLevelMethod · 0.65

Tested by

no test coverage detected