Improve our event logging greatly

This commit is contained in:
Adlai Holler
2016-11-17 11:51:35 +09:00
parent df7c2b6d96
commit 4a48ba8be2
6 changed files with 96 additions and 38 deletions

View File

@@ -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