/usr/src/castle-game-engine-5.2.0/base/android/castleandroidlog.pas is in castle-game-engine-src 5.2.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 39 40 41 42 43 44 45 46 | { Android logging facility.
@exclude Internal for the engine. }
unit CastleAndroidLog;
interface
{ Based on Android NDK platforms/android-4/arch-arm/usr/include/android/log.h .
See also Lazarus' trunk/lcl/interfaces/customdrawn/android/log.pas . }
type
TAndroidLogPriority = (
alUnknown,
alDefault,
alVerbose,
alDebug,
alInfo,
alWarn,
alError,
alFatal,
alSilent
);
procedure AndroidLog(const Priority: TAndroidLogPriority; const S: string);
procedure AndroidLog(const Priority: TAndroidLogPriority; const S: string; const Args: array of const);
implementation
uses CTypes, SysUtils, CastleUtils;
const
AndroidLogLib = 'liblog.so';
function __android_log_write(prio: CInt; tag, text: PChar): CInt; cdecl;
external AndroidLogLib;
procedure AndroidLog(const Priority: TAndroidLogPriority; const S: string);
begin
__android_log_write(Ord(Priority), PChar(ApplicationName), PChar(S));
end;
procedure AndroidLog(const Priority: TAndroidLogPriority; const S: string; const Args: array of const);
begin
AndroidLog(Priority, Format(S, Args));
end;
end.
|