logging with the debug_logger - VindictiveA3/vdic GitHub Wiki

  • Params:
  • 0 : (String) Text to be logged
    
  • 1 : (Int) Where to send the log 
    
  •     0 - To File
    
  •     1 - To Console
    
  •     2 - To File and Console
    
  • 2 : (Bool) If the log should be time stamped.
    
  •     true - Time Stamp log
    
  •     false - Do not Time Stamp log
    
  • 3 : (Int) Should the log be colored? (Applies only to Console Printed Logs)
    
  •     0 - White
    
  •     1 - Red
    
  •     2 - Green
    
  •     3 - Blue
    
  •     4 - Yellow
    
  •     5 - Purple
    
  •     6 - Cyan
    
    • use this statement so we can turn it on and off if we want to.
  • if (LIFE_SETTINGS(getNumber,"player_ExtDebugLog") isEqualTo 1) then {
  • if (LIFE_SETTINGS(getNumber,"player_ExtDebugTerm") isEqualTo 1) then {
  •        []remoteExec ["log_fnc_logger",RANY]
    
  • }else{
    
  •         []remoteExec ["log_fnc_logger",RANY]
    
  • };
  • };