forked from LogentriesCommunity/le_ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LogFile.h
38 lines (25 loc) · 746 Bytes
/
LogFile.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
//
// LogFile.h
// lelib
//
// Created by Petr on 01.12.13.
// Copyright (c) 2013,2014 Logentries. All rights reserved.
//
#import <Foundation/Foundation.h>
#define LOGFILE_BASENAME @"lelog"
@interface LogFile : NSObject
- (id)initWithNumber:(NSInteger)number;
@property (nonatomic, assign) NSInteger orderNumber;
@property (nonatomic, assign) NSInteger bytesProcessed;
- (NSString*)logPath;
- (BOOL)remove;
- (void)changeOrderNumber:(NSInteger)newOrderNumber;
/*
Write atomically position into mark file.
*/
- (void)markPosition:(NSInteger)position;
// returns zero if the file does not exist
- (NSUInteger)size;
+ (NSInteger)logFileNumber:(NSString*)filename;
+ (NSInteger)markFileNumber:(NSString*)filename;
@end