mariadb log: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 7: Line 7:


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|level_str|The level of logging.}}
{{FuncParam|level_str|The level of logging as a string. logging levels: none, error, warning, info, debug}}


{{FuncReturnValue|This function returns nothing.}}
{{FuncReturnValue|This function returns nothing.}}
Line 14: Line 14:
<syntaxhighlight lang="Lua">
<syntaxhighlight lang="Lua">
AddEvent("OnPackageStart", function()
AddEvent("OnPackageStart", function()
mariadb_log(SQL_LOGL)
-- logging levels: none, error, warning, info, debug
mariadb_log("error")
end)
end)
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
* [[mariadb_connect]]
{{Template:MariaDBFunctions}}

Latest revision as of 08:21, 2 September 2020