forked from LogentriesCommunity/le_ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlecore.h
35 lines (27 loc) · 831 Bytes
/
lecore.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
//
// lecore.h
// lelib
//
// Created by Petr on 06.01.14.
// Copyright (c) 2014 Logentries. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifndef lelib_lecore_h
#define lelib_lecore_h
#define TOKEN_LENGTH 36
#define MAXIMUM_LOGENTRY_SIZE 8192
#define MAXIMUM_FILE_COUNT 3
#define MAXIMUM_LOGFILE_SIZE (1024 * 1024)
extern void LE_SYSTEM_DEBUG(NSString *format, ...);
extern void LE_DEBUG(NSString *format, ...);
/* Pure C API */
int le_init(void);
void le_handle_crashes(void);
void le_poke(void);
void le_log(const char* message);
void le_write_string(NSString* string);
void le_set_token(const char* token);
bool is_valid_token(const char* token,size_t *token_length);
void le_set_debug_logs(bool verbose);
void le_set_system_logs(bool debug);
#endif