lpw
2023-07-20 80f7cc0c18ce7e590a4c14cd1011a82b296770f5
commit | author | age
e0ec42 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 NS_ASSUME_NONNULL_BEGIN
12
13 /*
14  * Constants defining logging behavior.  Use with <[FBSDKSettings setLoggingBehavior]>.
15  */
16
17 typedef NSString *FBSDKLoggingBehavior NS_TYPED_ENUM NS_SWIFT_NAME(LoggingBehavior);
18
19 /// Include access token in logging.
20 FOUNDATION_EXPORT FBSDKLoggingBehavior const FBSDKLoggingBehaviorAccessTokens;
21
22 /// Log performance characteristics
23 FOUNDATION_EXPORT FBSDKLoggingBehavior const FBSDKLoggingBehaviorPerformanceCharacteristics;
24
25 /// Log FBSDKAppEvents interactions
26 FOUNDATION_EXPORT FBSDKLoggingBehavior const FBSDKLoggingBehaviorAppEvents;
27
28 /// Log Informational occurrences
29 FOUNDATION_EXPORT FBSDKLoggingBehavior const FBSDKLoggingBehaviorInformational;
30
31 /// Log cache errors.
32 FOUNDATION_EXPORT FBSDKLoggingBehavior const FBSDKLoggingBehaviorCacheErrors;
33
34 /// Log errors from SDK UI controls
35 FOUNDATION_EXPORT FBSDKLoggingBehavior const FBSDKLoggingBehaviorUIControlErrors;
36
37 /// Log debug warnings from API response, i.e. when friends fields requested, but user_friends permission isn't granted.
38 FOUNDATION_EXPORT FBSDKLoggingBehavior const FBSDKLoggingBehaviorGraphAPIDebugWarning;
39
40 /** Log warnings from API response, i.e. when requested feature will be deprecated in next version of API.
41  Info is the lowest level of severity, using it will result in logging all previously mentioned levels.
42  */
43 FOUNDATION_EXPORT FBSDKLoggingBehavior const FBSDKLoggingBehaviorGraphAPIDebugInfo;
44
45 /// Log errors from SDK network requests
46 FOUNDATION_EXPORT FBSDKLoggingBehavior const FBSDKLoggingBehaviorNetworkRequests;
47
48 /// Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors.
49 FOUNDATION_EXPORT FBSDKLoggingBehavior const FBSDKLoggingBehaviorDeveloperErrors;
50
51 NS_ASSUME_NONNULL_END