-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure Logging. Rename package. Fix artifact naming. (#12)
- Loading branch information
1 parent
425eb5c
commit bfc198a
Showing
10 changed files
with
62 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.github.moreirasantos.pgkn | ||
|
||
import io.github.oshai.kotlinlogging.KotlinLogging | ||
import io.github.oshai.kotlinlogging.Marker | ||
import io.github.oshai.kotlinlogging.KLogger as ActualKLogger | ||
|
||
object PgknMarker : Marker { | ||
override fun getName() = "PGKN" | ||
} | ||
|
||
class KLogger(private val actualKLogger: ActualKLogger) : ActualKLogger by actualKLogger { | ||
constructor(name: String) : this(KotlinLogging.logger(name)) | ||
|
||
override fun trace(message: () -> Any?) = trace(null as Throwable?, PgknMarker, message) | ||
|
||
// Might want to override this to give the ability to turn on/off logs for PGKN | ||
// override fun isLoggingEnabledFor(level: Level, marker: Marker?) = level.isLoggingEnabled() && ? | ||
} |
2 changes: 1 addition & 1 deletion
2
...otlin/io/github/miguelmoreira/pgkn/Oid.kt → ...otlin/io/github/moreirasantos/pgkn/Oid.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.github.miguelmoreira.pgkn | ||
package io.github.moreirasantos.pgkn | ||
|
||
|
||
/** | ||
|
2 changes: 1 addition & 1 deletion
2
...ithub/miguelmoreira/pgkn/PgKnException.kt → ...ithub/moreirasantos/pgkn/PgKnException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@file:Suppress("MatchingDeclarationName") | ||
package io.github.miguelmoreira.pgkn | ||
package io.github.moreirasantos.pgkn | ||
|
||
class SQLException : Exception() |
6 changes: 3 additions & 3 deletions
6
...thub/miguelmoreira/pgkn/PostgresDriver.kt → ...thub/moreirasantos/pgkn/PostgresDriver.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...miguelmoreira/pgkn/resultset/ResultSet.kt → ...moreirasantos/pgkn/resultset/ResultSet.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../miguelmoreira/pgkn/PostgresDriverTest.kt → .../moreirasantos/pgkn/PostgresDriverTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters