mariadb log: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
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| | {{FuncDescription|Set the mariaDB logging level.}} | ||
{{FuncSyntax|mariadb_log(level_str)}} | {{FuncSyntax|mariadb_log(level_str)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|level_str| | {{FuncParam|level_str|The level of logging.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|This function returns nothing.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
AddEvent("OnPackageStart", function() | |||
mariadb_log(SQL_LOGL) | |||
end) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[mariadb_connect]] |
Revision as of 09:43, 19 November 2019
Description
Set the mariaDB logging level.
Syntax
mariadb_log(level_str)
Parameters
- level_str
The level of logging.
Return Value
- This function returns nothing.
Example
AddEvent("OnPackageStart", function()
mariadb_log(SQL_LOGL)
end)