mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Improve our event logging greatly
This commit is contained in:
@@ -15,15 +15,24 @@
|
||||
#endif
|
||||
|
||||
#ifndef ASEVENTLOG_ENABLE
|
||||
#define ASEVENTLOG_ENABLE 1
|
||||
#define ASEVENTLOG_ENABLE DEBUG
|
||||
#endif
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ASEventLog : NSObject
|
||||
|
||||
/**
|
||||
* Create a new event log.
|
||||
*
|
||||
* @param anObject The object whose events we are logging. This object is not retained.
|
||||
*/
|
||||
- (instancetype)initWithObject:(id)anObject;
|
||||
|
||||
- (void)logEventWithBacktrace:(nullable NSArray<NSString *> *)backtrace format:(NSString *)format, ... NS_FORMAT_FUNCTION(2, 3);
|
||||
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
Reference in New Issue
Block a user