MagifyManager․Logging
Overview
This part of the MagifyManager provides access to operations with logging.
IsLoggingEnabled
bool IsLoggingEnabled
Turns all SDK logs on or off. false turns off all of them, warnings and errors included.
LogMode
LogMode LogMode
Sets or gets which SDK logs are written. Use it after the SDK is initialized. To set it at start, use MagifyConfig.LogMode or MagifyServiceArgs.LogMode.
Detailed logs also need the MAGIFY_VERBOSE_LOGGING define. Some of them are written only for the scopes you enable.
MagifyManager.Logging.LogMode = LogMode.Debug;
The native Android plugin writes a few lines to Logcat in every mode.
EnableScope
void EnableScope(string scope)
Enables logging scope.
DisableScope
void DisableScope(string scope)
Disables logging scope.
EnableAllScopes
void EnableAllScopes()
Enables all Magify logging scopes.
IsScopeActive
bool IsScopeActive(string scope)
Checks if the scope if enabled.
GetActiveScopes
IEnumerable<string> GetActiveScopes()
Returns all enabled scopes.
Reset
void Reset()
Resets all enabled scopes.