Set log level
The Adjust SDK provides configurable log levels to return different amounts of information. The following log levels are available:
Log level | Description |
---|---|
AdjustLogLevel.Verbose | Enable full logging. |
AdjustLogLevel.Debug | Enable more detailed logging for debugging issues. |
AdjustLogLevel.Info | Return info, warnings, errors, and assert logs. |
AdjustLogLevel.Warn | Return warnings, errors, and assert logs. |
AdjustLogLevel.Error | Return only errors and assert logs. |
AdjustLogLevel.Assert | Return only assert logs. |
AdjustLogLevel.Suppress | Disable all logging. |
You can set your log level in the Adjust prefab menu or by calling the setLogLevel
method on your config instance.
Disable all logging
To disable all log output when initializing the SDK manually, call setLogLevel(AdjustLogLevel.Suppress)
on your config instance. You need to set allowSuppressLogLevel
by passing a true
value as the third argument in your AdjustConfig
declaration.
View compiled logs on Windows
If your target is Windows-based and you want to see the compiled logs from our library in Production mode, redirect the log output to your app while testing it in Sandbox mode.
To register a log delegate, call the setLogDelegate
method on your AdjustConfig
instance.
setLogDelegate
method before you initialize the Adjust SDK.