commit | author | age
|
2e29a3
|
1 |
/* |
L |
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 |
|
e0ec42
|
9 |
#import <FBSDKCoreKit/FBSDKLogging.h> |
2e29a3
|
10 |
#import <FBSDKCoreKit/FBSDKLoggingBehavior.h> |
e0ec42
|
11 |
#import <Foundation/Foundation.h> |
2e29a3
|
12 |
|
L |
13 |
NS_ASSUME_NONNULL_BEGIN |
|
14 |
|
|
15 |
/** |
|
16 |
Simple logging utility for conditionally logging strings and then emitting them |
|
17 |
via NSLog(). |
|
18 |
|
|
19 |
@unsorted |
|
20 |
|
|
21 |
Internal Type exposed to facilitate transition to Swift. |
|
22 |
API Subject to change or removal without warning. Do not use. |
|
23 |
|
|
24 |
@warning INTERNAL - DO NOT USE |
|
25 |
*/ |
e0ec42
|
26 |
NS_SWIFT_NAME(_Logger) |
L |
27 |
@interface FBSDKLogger : NSObject <FBSDKLogging> |
2e29a3
|
28 |
|
e0ec42
|
29 |
- (instancetype)init NS_UNAVAILABLE; |
L |
30 |
+ (instancetype)new NS_UNAVAILABLE; |
2e29a3
|
31 |
|
L |
32 |
// Simple helper to write a single log entry, based upon whether the behavior matches a specified on. |
|
33 |
+ (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior |
|
34 |
logEntry:(NSString *)logEntry; |
|
35 |
|
|
36 |
@end |
|
37 |
|
|
38 |
NS_ASSUME_NONNULL_END |