author | dag10 |
Sat, 09 Feb 2013 18:58:19 -0500 | |
changeset 8489 | 25cb6f4a1d1b |
parent 7889 | 57b117d441b9 |
child 10017 | de822cd3df3a |
permissions | -rw-r--r-- |
7889 | 1 |
unit log; |
2 |
{$ifdef fpc} |
|
5306 | 3 |
{$mode delphi} |
7889 | 4 |
{$endif} |
5 |
||
6 |
interface |
|
7 |
||
8 |
const libname='liblog.so'; |
|
9 |
||
10 |
ANDROID_LOG_UNKNOWN=0; |
|
5306 | 11 |
ANDROID_LOG_DEFAULT=1; |
12 |
ANDROID_LOG_VERBOSE=2; |
|
13 |
ANDROID_LOG_DEBUG=3; |
|
14 |
ANDROID_LOG_INFO=4; |
|
15 |
ANDROID_LOG_WARN=5; |
|
16 |
ANDROID_LOG_ERROR=6; |
|
17 |
ANDROID_LOG_FATAL=7; |
|
7889 | 18 |
ANDROID_LOG_SILENT=8; |
19 |
||
20 |
type android_LogPriority=integer; |
|
21 |
||
22 |
function __android_log_write(prio:longint;tag,text:pchar):longint; cdecl; external libname name '__android_log_write'; |
|
23 |
||
24 |
//function __android_log_print(prio:longint;tag,print:pchar;params:array of pchar):longint; cdecl; external libname name '__android_log_print'; |
|
25 |
||
26 |
implementation |
|
27 |
||
28 |
end. |