mariadb log: Difference between revisions

From Onset Developer Wiki
m (BlueMountains moved page mysql log to mariadb log without leaving a redirect)
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}
{{Notice|This function is provided by the official [[MySQL]] plugin.}}
{{Notice|This function is provided by the official [[MariaDB]] plugin.}}


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


{{FuncSyntax|mysql_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