[SOLVED] Output messages to android system log (logcat)? lazarus / 43-Android ---------------------------------------------------------------------- WayneSherman · 2018-06-07 15:35 I would like to use logcat for debugging.  How can I output text to the android system log? Thanks. ---------------------------------------------------------------------- DonAlfredo · 2018-06-07 15:50 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i const      ANDROID_LOG_UNKNOWN=0;      ANDROID_LOG_DEFAULT=1;      ANDROID_LOG_VERBOSE=2;      ANDROID_LOG_DEBUG=3;      ANDROID_LOG_INFO=4;      ANDROID_LOG_WARN=5;      ANDROID_LOG_ERROR=6;      ANDROID_LOG_FATAL=7;      ANDROID_LOG_SILENT=8; function log(prio:cint;tag,text:PAnsiChar):cint; cdecl; external 'liblog.so' name '__android_log_write'; Use:log(ANDROI D_LOG_VERBOSE,'MyTag','MyMessage'); ---------------------------------------------------------------------- WayneSherman · 2018-06-07 16:50 Thank you sir.  Based on your answer I found the system log call for android defined in two places: LAMW: .../lazandroidmodulewizard/android_bridges/And_log_h.pas   See also example code for LAMW log:     (near bottom of file:  "3.1.1. File 1 - "And_log_h.pas" - the header interface file")     .../lazandroidmodulewizard/readme.md     .../lazandroidmodulewizard/docs/readme.txt Lazarus Custom Drawn:  .../lazarus/lcl/interfaces/customdrawn/android/log.pas