Check the log mask settings

API version 2 includes two methods for checking the log mask. You can use the isLoggingEnabled() method to check whether logging is enabled, and you can use the getLogMask() method to obtain the log mask.