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|__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.}}


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


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
AddEvent("OnPackageStart", function()
mariadb_log(SQL_LOGL)
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
* [[mariadb_connect]]

Revision as of 09:43, 19 November 2019

mariadb log

Type: Function
Context: Server
Introduced: v1.0

NOTICE

This function is provided by the official MariaDB plugin.

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)

See also