Package host.anzo.eossdk.eos.sdk
Class EOS_Logging_Interface
java.lang.Object
host.anzo.eossdk.eos.sdk.EOS_Logging_Interface
- Since:
- 8/8/2023
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EOS_EResultsetCallback(EOS_LogMessageFunc callback) Set the callback function to use for SDK log messages.static EOS_EResultsetLogLevel(EOS_ELogCategory logCategory, EOS_ELogLevel logLevel) Set the logging level for the specified logging category.
-
Constructor Details
-
EOS_Logging_Interface
public EOS_Logging_Interface()
-
-
Method Details
-
setLogLevel
Set the logging level for the specified logging category. By default all log categories will callback for Warnings, Errors, and Fatals.- Parameters:
logCategory- the specific log category to configure. Use EOS_LC_ALL_CATEGORIES to configure all categories simultaneously to the same log level.logLevel- the log level to use for the log category- Returns:
EOS_EResult.EOS_Successis returned if the log levels are now in use.
EOS_EResult.EOS_NotConfiguredis returned if the SDK has not yet been initialized, or if it has been shut down.
-
setCallback
Set the callback function to use for SDK log messages. Any previously set callback will no longer be called.- Parameters:
callback- the function to call when the SDK logs messages- Returns:
EOS_EResult.EOS_Successis returned if the callback will be used for future log messages.
EOS_EResult.EOS_NotConfiguredis returned if the SDK has not yet been initialized, or if it has been shut down- See Also:
-