klyn.logging.handler.DatabaseLogHandler.connect
method
public static connect(
url as String,
login as String = "",
password as String = "",
table as String = "application_logs",
minimumLevel as LogLevel = LogLevel.TRACE
) as DatabaseLogHandler:
Description

Opens an owned connection and creates a database handler.

Parameters
ParameterDescription
urlKlyn SQL URL.
loginLogin name.
passwordPassword.
tableDestination table.
minimumLevelLowest accepted level.
Returns

Handler owning the opened connection.

Example

handler = DatabaseLogHandler.connect("mariadb://localhost/logs")