Skip to content

Commit

Permalink
Merge pull request #3 from bolteu/ability_to_remove_poeg
Browse files Browse the repository at this point in the history
Add ability to remove registered poegs
  • Loading branch information
devindi authored Apr 20, 2021
2 parents 1a0c8ae + 467a009 commit d1c72b0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions kalev-lib/src/main/java/eu/bolt/kalev/Kalev.kt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ object Kalev {
consumers.add(consumer)
}

@JvmStatic
fun removePoeg(consumer: Kalevipoeg) {
consumers.remove(consumer)
}

@JvmStatic
fun removeAllPoegs() {
consumers.clear()
}

fun getEntry(): LogEntry {
return if (nop) {
nopEntry
Expand Down

0 comments on commit d1c72b0

Please sign in to comment.