Logging
Send log messages to Fullstory without logging to the developer console
Parameters
Possible values: 'FS.LogLevel.LOG', 'FS.LogLevel.DEBUG', 'FS.LogLevel.INFO', 'FS.LogLevel.WARN', 'FS.LogLevel.ERROR'
These values map to corresponding Android log levels: VERBOSE, DEBUG, INFO, WARN, ERROR
A String that will be logged to the Fullstory console.
The log levels result in different output styles in the Fullstory console.
Additional Information
- Java
- Kotlin
public static void FS.log(LogLevel logLevel, String message);
Although standard logcat logs will be captured by Fullstory, you have the option to log messages without adding additional noise to your logcat logs by using FS.log(). The automatic logging behavior can be controlled using the logLevel property when applying the fullstory plugin (available post v1.1.0).
Example Invocation
Logging an error
FS.log(FS.LogLevel.ERROR, "Login failed");
fun FS.log(logLevel: LogLevel, message: String): Unit
Although standard logcat logs will be captured by Fullstory, you have the option to log messages without adding additional noise to your logcat logs by using FS.log(). The automatic logging behavior can be controlled using the logLevel property when applying the fullstory plugin (available post v1.1.0).
Example Invocation
Logging an error
FS.log(FS.LogLevel.ERROR, "Login failed")