PNSReporter.h 923 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // PNSReporter.h
  3. // ATAuthSDK
  4. //
  5. // Created by 刘超的MacBook on 2020/5/21.
  6. // Copyright © 2020. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef NS_ENUM(NSInteger, PNSLoggerLevel) {
  11. PNSLoggerLevelVerbose = 1,
  12. PNSLoggerLevelDebug,
  13. PNSLoggerLevelInfo,
  14. PNSLoggerLevelWarn,
  15. PNSLoggerLevelError
  16. };
  17. @interface PNSReporter : NSObject
  18. /**
  19. * 控制台日志输出开关,若开启会以PNS_LOGGER为开始标记对日志进行输出,Release模式记得关闭!
  20. * @param enable 开关参数,默认为NO
  21. */
  22. - (void)setConsolePrintLoggerEnable:(BOOL)enable;
  23. /**
  24. * 设置埋点上传开关,但不会对通过 setupUploader: 接口实现的自定义上传方法起作用
  25. * @param enable 开关设置BOOL值,默认为YES
  26. */
  27. - (void)setUploadEnable:(BOOL)enable DEPRECATED_MSG_ATTRIBUTE("日志不再上传");;
  28. @end
  29. NS_ASSUME_NONNULL_END