Api/minux.debug(): Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
(Created page with "prints or logs "printstring", stored in /var/log/logname.txt. uses settings from _G.debugmode, wich is set trough "config debug setting" "disabled" does nothing, "enabled" prints printstring to the screen, "logging" writes printstring in the log file, "full" does both.")
 
No edit summary
 
Line 1: Line 1:
prints or logs "printstring", stored in /var/log/logname.txt. uses settings from _G.debugmode, wich is set trough "config debug setting"
this [[api]] prints to the screen or write in the logs whatever is in the argument "printstring", stored in /var/log/%logname%.txt. where logname is the "logname" argument


"disabled" does nothing, "enabled" prints printstring to the screen, "logging" writes printstring in the log file, "full" does both.
uses settings from _G.debugmode, wich is set trough "[[Binaries/config|config]] debug setting" or the [[Api/minux.config()|minux.config()]] api
 
 
'''usage:'''
 
minux.debug(printstring , logname)

Latest revision as of 08:15, 24 September 2024

this api prints to the screen or write in the logs whatever is in the argument "printstring", stored in /var/log/%logname%.txt. where logname is the "logname" argument

uses settings from _G.debugmode, wich is set trough "config debug setting" or the minux.config() api


usage:

minux.debug(printstring , logname)