public DatabaseLogHandler( connection as Connection, table as String = "application_logs", minimumLevel as LogLevel = LogLevel.TRACE, ownsConnection as Boolean = false ):
Creates a database handler from an existing connection.
| Parameter | Description |
|---|---|
connection | Open SQL connection. |
table | Destination table identifier. |
minimumLevel | Lowest accepted level. |
ownsConnection | Whether close() also closes the connection. |
handler = DatabaseLogHandler(connection)