-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ktfmt following instructions: https://github.com/cortinico/ktfmt-gradle#how-to-use- * add docs * upgrade to java 11
- Loading branch information
Showing
54 changed files
with
1,914 additions
and
2,233 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# CONTRIBUTING | ||
|
||
Pull requests are welcome! | ||
Before submitting a PR, it is usually better to discuss your intentions either by opening a new issue or in [slack](https://kotlinlang.slack.com/messages/kotlin-logging/). | ||
|
||
# Building locally | ||
|
||
`./gradlew clean build` | ||
|
||
To check formatting: | ||
|
||
`./gradlew ktfmtCheck` | ||
|
||
To fix formatting: | ||
|
||
`./gradlew ktfmtFormat` | ||
|
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
package mu | ||
|
||
/** | ||
* A platform independent factory to create markers. | ||
*/ | ||
/** A platform independent factory to create markers. */ | ||
public expect object KMarkerFactory { | ||
|
||
public fun getMarker(name: String): Marker | ||
public fun getMarker(name: String): Marker | ||
} |
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,14 +1,13 @@ | ||
package mu | ||
|
||
|
||
public expect object KotlinLogging { | ||
/** | ||
* This method allow defining the logger in a file in the following way: | ||
* ``` | ||
* val logger = KotlinLogging.logger {} | ||
* ``` | ||
*/ | ||
public fun logger(func: () -> Unit): KLogger | ||
/** | ||
* This method allow defining the logger in a file in the following way: | ||
* ``` | ||
* val logger = KotlinLogging.logger {} | ||
* ``` | ||
*/ | ||
public fun logger(func: () -> Unit): KLogger | ||
|
||
public fun logger(name: String): KLogger | ||
public fun logger(name: String): KLogger | ||
} |
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,9 +1,7 @@ | ||
package mu | ||
|
||
/** | ||
* A platform independent marker to enrich log statements. | ||
*/ | ||
/** A platform independent marker to enrich log statements. */ | ||
public expect interface Marker { | ||
|
||
public fun getName(): String | ||
public fun getName(): String | ||
} |
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
Oops, something went wrong.