BULogManager.h 922 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // BULogManager.h
  3. // BUAdSDK
  4. //
  5. // Created by bytedance on 2020/6/9.
  6. // Copyright © 2020 bytedance. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. // 这里跟 BUAdSDKLogLevel 对齐
  10. typedef NS_ENUM(NSInteger, BULogManagerLevel) {
  11. BULogManagerLevelNone,
  12. BULogManagerLevelError,
  13. BULogManagerLevelWarning,
  14. BULogManagerLevelInfo,
  15. BULogManagerLevelDebug,
  16. BULogManagerLevelVerbose,
  17. };
  18. NS_ASSUME_NONNULL_BEGIN
  19. @interface BULogManager : NSObject
  20. @property (nonatomic, assign) BULogManagerLevel level;
  21. + (void)errorLogWithFormat:(NSString *)format, ...;
  22. + (void)warningLogWithFormat:(NSString *)format, ...;
  23. + (void)infoLogWithFormat:(NSString *)format, ...;
  24. + (void)debugLogWithFormat:(NSString *)format, ...;
  25. + (void)verboseLogWithFormat:(NSString *)format, ...;
  26. + (void)internalLogWithFormat:(NSString *)format, ...;
  27. + (instancetype)sharedInstance;
  28. @end
  29. NS_ASSUME_NONNULL_END