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 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
#import <FBSDKCoreKit/FBSDKLoggingBehavior.h> |
|
12 |
|
|
13 |
NS_ASSUME_NONNULL_BEGIN |
|
14 |
|
|
15 |
/** |
|
16 |
|
|
17 |
Simple logging utility for conditionally logging strings and then emitting them |
|
18 |
via NSLog(). |
|
19 |
|
|
20 |
@unsorted |
|
21 |
|
|
22 |
Internal Type exposed to facilitate transition to Swift. |
|
23 |
API Subject to change or removal without warning. Do not use. |
|
24 |
|
|
25 |
@warning INTERNAL - DO NOT USE |
|
26 |
*/ |
|
27 |
NS_SWIFT_NAME(Logger) |
|
28 |
@interface FBSDKLogger : NSObject |
|
29 |
|
|
30 |
- (instancetype)init DEPRECATED_MSG_ATTRIBUTE("`init` is deprecated and will be removed in the next major release. Please use one of the other available initializers"); |
|
31 |
+ (instancetype)new DEPRECATED_MSG_ATTRIBUTE("`new` is deprecated and will be removed in the next major release. Please use one of the other available initializers"); |
|
32 |
|
|
33 |
// Simple helper to write a single log entry, based upon whether the behavior matches a specified on. |
|
34 |
+ (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior |
|
35 |
logEntry:(NSString *)logEntry; |
|
36 |
|
|
37 |
@end |
|
38 |
|
|
39 |
NS_ASSUME_NONNULL_END |