klyn.logging.handler.DatabaseLogHandler.DatabaseLogHandler
constructor
public DatabaseLogHandler(
connection as Connection,
table as String = "application_logs",
minimumLevel as LogLevel = LogLevel.TRACE,
ownsConnection as Boolean = false
):
Description

Creates a database handler from an existing connection.

Parameters
ParameterDescription
connectionOpen SQL connection.
tableDestination table identifier.
minimumLevelLowest accepted level.
ownsConnectionWhether close() also closes the connection.
Example

handler = DatabaseLogHandler(connection)