Set log level

The Adjust SDK provides configurable log levels to return different amounts of information. The following log levels are available:

Log levelDescription
AdjustConfig.LogLevelVerboseEnable full logging.
AdjustConfig.LogLevelDebugEnable more detailed logging for debugging issues.
AdjustConfig.LogLevelInfoReturn info, warnings, errors, and assert logs.
AdjustConfig.LogLevelWarnReturn warnings, errors, and assert logs.
AdjustConfig.LogLevelErrorReturn only errors and assert logs.
AdjustConfig.LogLevelAssertReturn only assert logs.
AdjustConfig.LogLevelSuppressDisable all logging.

You can set your log level in the Adjust prefab menu or by calling the setLogLevel method on your config instance.

Javascript
const adjustConfig = new AdjustConfig("{YourAppToken}", AdjustConfig.EnvironmentSandbox);
//...
adjustConfig.setLogLevel(AdjustConfig.LogLevelVerbose);
//...
Adjust.create(adjustConfig);

Disable all logging

To disable all log output when initializing the SDK manually, call setLogLevel(AdjustConfig.LogLevelSuppress) on your config instance.

Javascript
const adjustConfig = new AdjustConfig("{YourAppToken}", AdjustConfig.EnvironmentSandbox);
//...
adjustConfig.setLogLevel(AdjustConfig.LogLevelSuppress);
//...
Adjust.create(adjustConfig);