mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 22:03:37 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
24 lines
463 B
Objective-C
24 lines
463 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef NS_ENUM(NSUInteger, LogLevel) {
|
|
LogLevelDebug = 0,
|
|
LogLevelInfo,
|
|
LogLevelWarning,
|
|
LogLevelError,
|
|
LogLevelCritical
|
|
};
|
|
|
|
@interface Logger : NSObject
|
|
|
|
+ (void)log:(LogLevel)level message:(NSString *)message;
|
|
+ (BOOL)canLog:(LogLevel)level;
|
|
+ (void)setFileLoggingEnabled:(BOOL)fileLoggingEnabled;
|
|
+ (nullable NSURL *)getLogFileURL;
|
|
+ (uint64_t)getLogFileSize;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|