mariadb log: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 2: Line 2:
{{Notice|This function is provided by the official [[MariaDB]] plugin.}}
{{Notice|This function is provided by the official [[MariaDB]] plugin.}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Set the mariaDB logging level.}}


{{FuncSyntax|mariadb_log(level_str)}}
{{FuncSyntax|mariadb_log(level_str)}}


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


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function returns nothing.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
AddEvent("OnPackageStart", function()
-- logging levels: none, error, warning, info, debug
mariadb_log("error")
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:MariaDBFunctions}}

Latest revision as of 08:21, 2 September 2020