Skip to main content
Version: v1

Logging

Send log messages to FullStory without logging to the developer console

Standard console.log() statements will be captured by FullStory and can be optionally disabled. You have the option to log messages to FullStory without adding additional noise to your users' browser consoles using FS.log().

Parameters
    logLevel string optional

    Possible values: log, info, warn, error

    Default value: log

    These values are identical to the four methods available to the browser console API. If this parameter is not provided, the log value is used by default.

    message string required

    A text string that will be logged to the FullStory console.

The log levels result in different output styles in the FullStory console.

Additional Information

FS.log(logLevel?, message)

Example Invocation

Using the default log level
FS.log('Customer logged in successfully');
Logging an error
FS.log('error', 'Login failed');