Class EOS_Logging_Interface

java.lang.Object
host.anzo.eossdk.eos.sdk.EOS_Logging_Interface

public class EOS_Logging_Interface extends Object
Since:
8/8/2023
  • Constructor Details

    • EOS_Logging_Interface

      public EOS_Logging_Interface()
  • Method Details

    • setLogLevel

      public static EOS_EResult setLogLevel(EOS_ELogCategory logCategory, EOS_ELogLevel logLevel)
      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_Success is returned if the log levels are now in use.
      EOS_EResult.EOS_NotConfigured is returned if the SDK has not yet been initialized, or if it has been shut down.
    • setCallback

      public static EOS_EResult setCallback(EOS_LogMessageFunc callback)
      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_Success is returned if the callback will be used for future log messages.
      EOS_EResult.EOS_NotConfigured is returned if the SDK has not yet been initialized, or if it has been shut down
      See Also: