FBSDKLogger.h 1017 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) Meta Platforms, Inc. and affiliates.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. */
  8. #import <FBSDKCoreKit/FBSDKLogging.h>
  9. #import <FBSDKCoreKit/FBSDKLoggingBehavior.h>
  10. #import <Foundation/Foundation.h>
  11. NS_ASSUME_NONNULL_BEGIN
  12. /**
  13. Simple logging utility for conditionally logging strings and then emitting them
  14. via NSLog().
  15. @unsorted
  16. Internal Type exposed to facilitate transition to Swift.
  17. API Subject to change or removal without warning. Do not use.
  18. @warning INTERNAL - DO NOT USE
  19. */
  20. NS_SWIFT_NAME(_Logger)
  21. @interface FBSDKLogger : NSObject <FBSDKLogging>
  22. - (instancetype)init NS_UNAVAILABLE;
  23. + (instancetype)new NS_UNAVAILABLE;
  24. // Simple helper to write a single log entry, based upon whether the behavior matches a specified on.
  25. + (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior
  26. logEntry:(NSString *)logEntry;
  27. @end
  28. NS_ASSUME_NONNULL_END