Nextrek
@ 585
Nextrek / iOS / SafariArte / trunk / Pods / Crashlytics / Crashlytics.framework / Headers / CLSLogging.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
// // CLSLogging.h // Crashlytics // // Copyright (c) 2015 Crashlytics, Inc. All rights reserved. // #ifdef __OBJC__ #import <Fabric/FABAttributes.h> #import <Foundation/Foundation.h> FAB_START_NONNULL #endif /** * * The CLS_LOG macro provides as easy way to gather more information in your log messages that are * sent with your crash data. CLS_LOG prepends your custom log message with the function name and * line number where the macro was used. If your app was built with the DEBUG preprocessor macro * defined CLS_LOG uses the CLSNSLog function which forwards your log message to NSLog and CLSLog. * If the DEBUG preprocessor macro is not defined CLS_LOG uses CLSLog only. * * Example output: * -[AppDelegate login:] line 134 $ login start * * If you would like to change this macro, create a new header file, unset our define and then define * your own version. Make sure this new header file is imported after the Crashlytics header file. * * #undef CLS_LOG * #define CLS_LOG(__FORMAT__, ...) CLSNSLog... * **/ #ifdef __OBJC__ #ifdef DEBUG #define CLS_LOG(__FORMAT__, ...) CLSNSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) #else #define CLS_LOG(__FORMAT__, ...) CLSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) #endif #endif /** * * Add logging that will be sent with your crash data. This logging will not show up in the system.log * and will only be visible in your Crashlytics dashboard. * **/ #ifdef __OBJC__ OBJC_EXTERN void CLSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2); OBJC_EXTERN void CLSLogv(NSString *format, va_list ap) NS_FORMAT_FUNCTION(1,0); /** * * Add logging that will be sent with your crash data. This logging will show up in the system.log * and your Crashlytics dashboard. It is not recommended for Release builds. * **/ OBJC_EXTERN void CLSNSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2); OBJC_EXTERN void CLSNSLogv(NSString *format, va_list ap) NS_FORMAT_FUNCTION(1,0); FAB_END_NONNULL #endif |
Commits for Nextrek/iOS/SafariArte/trunk/Pods/Crashlytics/Crashlytics.framework/Headers/CLSLogging.h
Revision | Author | Commited | Message |
---|---|---|---|
585 | FAquili | Thu 27 Aug, 2015 09:30:10 +0000 | FOLDER UPDATE AFTER CRASHLYTHICS UPDATE |